class Resolver (View source)

Properties

protected Repository $config
protected string|null $characterSet

The character set.

protected string|null $collation

The collation.

protected int $maximumStringKeyLength

The maximum length of string fields that should be supported using the specified collation.

Methods

__construct(Repository $config)

No description

getConfig()

Get the configuration instance.

string
getDefaultCharacterSet()

Get the default character set.

string
getCharacterSet()

Get the character set.

$this
setCharacterSet(string|null|mixed $characterSet)

Set the character set.

string
getDefaultCollation()

Get the default collation.

string
getCollation()

Get the collation.

$this
setCollation(string|null|mixed $collation)

Set the collation.

int
getMaximumStringKeyLength()

Get the maximum length of string fields that should be supported using the specified collation.

$this
setMaximumStringKeyLength(int $value)

Set the maximum length of string fields that should be supported using the specified collation.

resolveCharacterSetAndCollation(Connection $connection)

Resolve the character set and collation.

string
normalizeCharacterSet(string|mixed $characterSet)

Get the normalized form (lower case, only letters/digits/underscores) of a character set.

string
normalizeCollation(string|mixed $collation)

Get the normalized form (lower case, only letters/digits/underscores) of a collation.

Details

__construct(Repository $config)

No description

Parameters

Repository $config

Repository getConfig()

Get the configuration instance.

Return Value

Repository

string getDefaultCharacterSet()

Get the default character set.

Return Value

string

Empty string if not set

string getCharacterSet()

Get the character set.

Return Value

string

Empty string if not set

$this setCharacterSet(string|null|mixed $characterSet)

Set the character set.

Parameters

string|null|mixed $characterSet

use NULL to use the default character set

Return Value

$this

string getDefaultCollation()

Get the default collation.

Return Value

string

Empty string if not set

string getCollation()

Get the collation.

Return Value

string

Empty string if not set

$this setCollation(string|null|mixed $collation)

Set the collation.

Parameters

string|null|mixed $collation

use NULL to use the default collation

Return Value

$this

int getMaximumStringKeyLength()

Get the maximum length of string fields that should be supported using the specified collation.

Return Value

int

$this setMaximumStringKeyLength(int $value)

Set the maximum length of string fields that should be supported using the specified collation.

Parameters

int $value

Return Value

$this

string normalizeCharacterSet(string|mixed $characterSet)

Get the normalized form (lower case, only letters/digits/underscores) of a character set.

Parameters

string|mixed $characterSet

Return Value

string

empty string if $characterSet is not valid

string normalizeCollation(string|mixed $collation)

Get the normalized form (lower case, only letters/digits/underscores) of a collation.

Parameters

string|mixed $collation

Return Value

string

empty string if $collation is not valid