Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Locale data reader, handles the CLDR
Zend_Cache_Core $_cache = 'null'Internal cache for ldml values
Detailsboolean $_cacheDisabled = 'false'Internal option, cache disabled
Detailsressource $_ldml = 'array'Locale files
Detailsarray $_list = 'array'List of values which are collected
Details_calendarDetail(
string $locale, array $list
)
:
stringFind the details for supplemental calendar datas
Details_checkLocale(
string|Zend_Locale $locale
)
:
stringInternal function for checking the locale
Details_findRoute(
string $locale, string $path, string $attribute, string $value, array $temp
)
:
Find possible routing to other path or locale
Details_getFile(
string $locale, string $path, string $attribute
=
false, string $value
=
false, $temp
=
array
)
:
Read the right LDML file
Details_readFile(
string $locale, string $path, string $attribute, string $value, $temp
)
:
arrayRead the content from locale
Can be called like:
Case 1: _readFile('ar','/ldml/delimiter') -> returns [] = test Case 1: _readFile('ar','/ldml/second[@type=myone]') -> returns [] = content Case 2: _readFile('ar','/ldml/second','type') -> returns [myone] = content; [mysecond] = content2 Case 3: _readFile('ar','/ldml/delimiter',,'right') -> returns [right] = test Case 4: _readFile('ar','/ldml/third','type','myone') -> returns [myone] = mythird
DetailsclearCache(
)
:
voidClears all set cache data
DetailsdisableCache(
unknown_type $flag
)
:
Disables the cache
DetailsgetCache(
)
:
Zend_Cache_CoreReturns the set cache
DetailsgetContent(
string $locale, string $path, string $value
=
false
)
:
stringRead the LDML file, get a single path defined value
DetailsgetList(
string $locale, string $path, string $value
=
false
)
:
arrayRead the LDML file, get a array of multipath defined value
DetailshasCache(
)
:
booleanReturns true when a cache is set
DetailsremoveCache(
)
:
voidRemoves any set cache
DetailssetCache(
Zend_Cache_Core $cache
)
:
Set a cache for Zend_Locale_Data
Details