class Charsets (View source)

Class used to manage MySQL charsets

Properties

static array<string,string> $mysqlCharsetMap

MySQL charsets map

Methods

static Charset
getServerCharset(DatabaseInterface $dbi, bool $disableIs)

Get current server charset

static array
getCharsets(DatabaseInterface $dbi, bool $disableIs)

Get all server charsets

static array
getCollations(DatabaseInterface $dbi, bool $disableIs)

Get all server collations

static Collation|null
findCollationByName(DatabaseInterface $dbi, bool $disableIs, string $name)

No description

Details

static Charset getServerCharset(DatabaseInterface $dbi, bool $disableIs)

Get current server charset

Parameters

DatabaseInterface $dbi
bool $disableIs

Disable use of INFORMATION_SCHEMA

Return Value

Charset

static array getCharsets(DatabaseInterface $dbi, bool $disableIs)

Get all server charsets

Parameters

DatabaseInterface $dbi
bool $disableIs

Disable use of INFORMATION_SCHEMA

Return Value

array

static array getCollations(DatabaseInterface $dbi, bool $disableIs)

Get all server collations

Parameters

DatabaseInterface $dbi
bool $disableIs

Disable use of INFORMATION_SCHEMA

Return Value

array

static Collation|null findCollationByName(DatabaseInterface $dbi, bool $disableIs, string $name)

No description

Parameters

DatabaseInterface $dbi
bool $disableIs

Disable use of INFORMATION_SCHEMA

string $name

Collation name

Return Value

Collation|null