Locale data reader, handles the CLDR

category Zend
package Zend_Locale
subpackage Data
copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Clears all set cache data

clearCache() : void

Disables the cache

disableCache(\unknown_type $flag) 

Parameters

$flag

\unknown_type

Returns the set cache

getCache() : \Zend_Cache_Core

Returns

\Zend_Cache_CoreThe set cache

Read the LDML file, get a single path defined value

getContent(string $locale, string $path, string $value) : string

access public

Parameters

$locale

string

$path

string

$value

string

Returns

string

Read the LDML file, get a array of multipath defined value

getList(string $locale, string $path, string $value) : array

access public

Parameters

$locale

string

$path

string

$value

string

Returns

array

Returns true when a cache is set

hasCache() : boolean

Returns

boolean

Removes any set cache

removeCache() : void

Set a cache for Zend_Locale_Data

setCache(Zend_Cache_Core $cache) 

Parameters

$cache

\Zend_Cache_Core

A cache frontend

Find the details for supplemental calendar datas

_calendarDetail(string $locale, array $list) : string

Parameters

$locale

string

Locale for Detaildata

$list

array

List to search

Returns

stringKey for Detaildata

Internal function for checking the locale

_checkLocale(string | \Zend_Locale $locale) : string

Parameters

$locale

string\Zend_Locale

Locale to check

Returns

string

Find possible routing to other path or locale

_findRoute(string $locale, string $path, string $attribute, string $value, array $temp) 

access private

Parameters

$locale

string

$path

string

$attribute

string

$value

string

$temp

array

Exceptions

\Zend_Locale_Exception

Read the right LDML file

_getFile(string $locale, string $path, string $attribute, string $value, $temp) 

access private

Parameters

$locale

string

$path

string

$attribute

string

$value

string

$temp

Internal method to check if the given cache supports tags

_getTagSupportForCache() 

Read the content from locale

_readFile(string $locale, string $path, string $attribute, string $value, $temp) : array

Can be called like: test content content2 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

access private

Parameters

$locale

string

$path

string

$attribute

string

$value

string

$temp

Returns

array

 Properties

 

Internal cache for ldml values

$_cache : \Zend_Cache_Core

access private
 

Internal option, cache disabled

$_cacheDisabled : boolean

access private
 

Internal value to remember if cache supports tags

$_cacheTags : boolean

 

Locale files

$_ldml : \ressource

access private
 

List of values which are collected

$_list : array

access private