lib/ezdb/classes/ezmysqlcharset.php

Show: inherited
Table of Contents

File containing the eZMySQLCharset class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Package
lib  
Since
4.4  
Version
4.6.0  

\eZMySQLCharset

Package: lib

File containing the eZMySQLCharset class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Since
4.4  
Version
4.6.0  

Properties

Propertyprotectedarray  $mapping= 'array( 'iso-8859-1' => 'latin1', 'iso-8859-2' => 'latin2', 'iso-8859-8' => 'hebrew', 'iso-8859-7' => 'greek', 'iso-8859-9' => 'latin5', 'iso-8859-13' => 'latin7', 'windows-1250' => 'cp1250', 'windows-1251' => 'cp1251', 'windows-1256' => 'cp1256', 'windows-1257' => 'cp1257', 'utf-8' => 'utf8', 'koi8-r' => 'koi8r', 'koi8-u' => 'koi8u' )'
static

Mapping between internal charset and MySQL ones.

Default valuearray( 'iso-8859-1' => 'latin1', 'iso-8859-2' => 'latin2', 'iso-8859-8' => 'hebrew', 'iso-8859-7' => 'greek', 'iso-8859-9' => 'latin5', 'iso-8859-13' => 'latin7', 'windows-1250' => 'cp1250', 'windows-1251' => 'cp1251', 'windows-1256' => 'cp1256', 'windows-1257' => 'cp1257', 'utf-8' => 'utf8', 'koi8-r' => 'koi8r', 'koi8-u' => 'koi8u' )Details
Type
array
Propertyprotectedarray  $reverseMapping= 'array( 'latin1' => 'iso-8859-1', 'latin2' => 'iso-8859-2', 'hebrew' => 'iso-8859-8', 'greek' => 'iso-8859-7', 'latin5' => 'iso-8859-9', 'latin7' => 'iso-8859-13', 'cp1250' => 'windows-1250', 'cp1251' => 'windows-1251', 'cp1256' => 'windows-1256', 'cp1257' => 'windows-1257', 'utf8' => 'utf-8', 'koi8r' => 'koi8-r', 'koi8u' => 'koi8-u' )'
static

Mapping between MySQL charset and internal ones.

Default valuearray( 'latin1' => 'iso-8859-1', 'latin2' => 'iso-8859-2', 'hebrew' => 'iso-8859-8', 'greek' => 'iso-8859-7', 'latin5' => 'iso-8859-9', 'latin7' => 'iso-8859-13', 'cp1250' => 'windows-1250', 'cp1251' => 'windows-1251', 'cp1256' => 'windows-1256', 'cp1257' => 'windows-1257', 'utf8' => 'utf-8', 'koi8r' => 'koi8-r', 'koi8u' => 'koi8-u' )Details
Type
array

Methods

methodpublicmapFrom( string $charset ) : string
static

Maps a MySQL charset to an internal one.

If the charset is unknown, it will be returned as is.

Parameters
Name Type Description
$charset string

Charset to map.

Returns
Type Description
string The converted charset.
Details
Since
4.4  
methodpublicmapTo( string $charset ) : string
static

Maps an internal charset to one understood by MySQL.

If the charset is unknown, it will be returned as is.

Parameters
Name Type Description
$charset string

Charset to map.

Returns
Type Description
string The converted charset.
Details
Since
4.4  
Documentation was generated by DocBlox 0.18.1.