eZ Publish  [trunk]
eZCharsetInfo Class Reference

Allows for quering information about charsets. More...

List of all members.

Static Public Member Functions

static characterEncodingScheme ($charsetCode, $isRealCharset=false)
static realCharsetCode ($charsetCode)

Static Private Member Functions

static & aliasTable ()
static & encodingTable ()
static & reverseEncodingTable ()

Detailed Description

Allows for quering information about charsets.

A charset can be known by multiple names but the internationlization system only works with one name. To fetch the real internal name use the static realCharsetCode() function. Each charset also has a specific encoding scheme associated with it which can be fetched with characterEncodingScheme().

Definition at line 24 of file ezcharsetinfo.php.


Member Function Documentation

static& eZCharsetInfo::aliasTable ( ) [static, private]
Returns:
the hash table with aliases, creates if it doesn't already exist.

Definition at line 31 of file ezcharsetinfo.php.

Referenced by realCharsetCode().

static eZCharsetInfo::characterEncodingScheme ( charsetCode,
isRealCharset = false 
) [static]

Tries to figure out the character encoding scheme for the given character set. It uses realCharsetCode() to get the correct internal charset so any charset can be given to this function. Either returns the found encoding scheme or 'singlebyte' if no scheme was found.

See also:
realCharsetCode

Definition at line 208 of file ezcharsetinfo.php.

Referenced by eZCodePage\eZCodePage(), and eZTextCodec\instance().

static& eZCharsetInfo::encodingTable ( ) [static, private]
Returns:
the character encoding hash table, creates it if it does not exist. The table will map from a character encoding scheme to an array of character sets.
See also:
reverseEncodingTable

Definition at line 144 of file ezcharsetinfo.php.

Referenced by reverseEncodingTable().

static& eZCharsetInfo::reverseEncodingTable ( ) [static, private]
Returns:
the reverse character encoding hash table, creates it if it does not exist. The table will map from a character set to a character encoding scheme.
See also:
encodingTable

Definition at line 167 of file ezcharsetinfo.php.

Referenced by characterEncodingScheme().


The documentation for this class was generated from the following file: