eZPublishCommunityProject  2013.6
eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverter Class Reference
+ Inheritance diagram for eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverter:
+ Collaboration diagram for eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverter:

Public Member Functions

 __construct (array $conversionMap, LoggerInterface $logger)
 
 convertToEz ($posixLocale)
 Converts a locale in POSIX format to eZ Publish internal format. More...
 
 convertToPOSIX ($ezpLocale)
 Converts a locale in eZ Publish internal format to POSIX format. More...
 

Private Attributes

 $conversionMap
 
 $logger
 
 $reverseConversionMap
 

Constructor & Destructor Documentation

eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverter::__construct ( array  $conversionMap,
LoggerInterface  $logger 
)

Member Function Documentation

eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverter::convertToEz (   $posixLocale)

Converts a locale in POSIX format to eZ Publish internal format.

Returns null if conversion cannot be made.

Parameters
string$posixLocale
Returns
string|null

Implements eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverterInterface.

eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverter::convertToPOSIX (   $ezpLocale)

Converts a locale in eZ Publish internal format to POSIX format.

Returns null if conversion cannot be made.

Parameters
string$ezpLocale
Returns
string|null

Implements eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverterInterface.

Member Data Documentation

eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverter::$conversionMap
private
eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverter::$logger
private
eZ\Publish\Core\MVC\Symfony\Locale\LocaleConverter::$reverseConversionMap
private

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