PHP Class PMA\libraries\Charsets

Show file Open project: phpmyadmin/phpmyadmin Class Usage Examples

Public Properties

Property Type Description
$mysql_charset_map array MySQL charsets map

Public Methods

Method Description
getCharsetDropdownBox ( string $name = null, string $id = null, null | string $default = null, boolean $label = true, boolean $submitOnChange = false ) : string Generate charset dropdown box
getCollationDescr ( string $collation ) : string returns description for given collation
getCollationDropdownBox ( string $name = null, string $id = null, null | string $default = null, boolean $label = true, boolean $submitOnChange = false ) : string Generate collation dropdown box
getMySQLCharsets ( )
getMySQLCharsetsDescriptions ( )
getMySQLCollations ( )
getMySQLCollationsDefault ( )
loadCharsets ( ) : void Loads charset data from the MySQL server.
loadCollations ( ) : void Loads collation data from the MySQL server.

Method Details

getCharsetDropdownBox() public static method

Generate charset dropdown box
public static getCharsetDropdownBox ( string $name = null, string $id = null, null | string $default = null, boolean $label = true, boolean $submitOnChange = false ) : string
$name string Element name
$id string Element id
$default null | string Default value
$label boolean Label
$submitOnChange boolean Submit on change
return string

getCollationDescr() public static method

returns description for given collation
public static getCollationDescr ( string $collation ) : string
$collation string MySQL collation string
return string collation description

getCollationDropdownBox() public static method

Generate collation dropdown box
public static getCollationDropdownBox ( string $name = null, string $id = null, null | string $default = null, boolean $label = true, boolean $submitOnChange = false ) : string
$name string Element name
$id string Element id
$default null | string Default value
$label boolean Label
$submitOnChange boolean Submit on change
return string

getMySQLCharsets() public static method

public static getMySQLCharsets ( )

getMySQLCharsetsDescriptions() public static method

public static getMySQLCharsetsDescriptions ( )

getMySQLCollations() public static method

public static getMySQLCollations ( )

getMySQLCollationsDefault() public static method

public static getMySQLCollationsDefault ( )

loadCharsets() public static method

Loads charset data from the MySQL server.
public static loadCharsets ( ) : void
return void

loadCollations() public static method

Loads collation data from the MySQL server.
public static loadCollations ( ) : void
return void

Property Details

$mysql_charset_map public static property

MySQL charsets map
public static array $mysql_charset_map
return array