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
boolean $_cacheDisabled = 'false'
Internal option, cache disabled
ressource $_ldml = 'array'
Locale files
array $_list = 'array'
List of values which are collected
_calendarDetail(
string $locale, array $list
)
:
string
Find the details for supplemental calendar datas
_checkLocale(
string|Zend_Locale $locale
)
:
string
Internal function for checking the locale
_findRoute(
string $locale, string $path, string $attribute, string $value, array $temp
)
:
Find possible routing to other path or locale
_getFile(
string $locale, string $path, string $attribute
=
false, string $value
=
false, $temp
=
array
)
:
Read the right LDML file
_readFile(
string $locale, string $path, string $attribute, string $value, $temp
)
:
array
Read 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
clearCache(
)
:
void
Clears all set cache data
disableCache(
unknown_type $flag
)
:
Disables the cache
getCache(
)
:
Zend_Cache_Core
Returns the set cache
getContent(
string $locale, string $path, string $value
=
false
)
:
string
Read the LDML file, get a single path defined value
getList(
string $locale, string $path, string $value
=
false
)
:
array
Read the LDML file, get a array of multipath defined value
hasCache(
)
:
boolean
Returns true when a cache is set
removeCache(
)
:
void
Removes any set cache
setCache(
Zend_Cache_Core $cache
)
:
Set a cache for Zend_Locale_Data