Locale data reader, handles the CLDR

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

 Methods

Clears all set cache data

clearCache() : void
Static

Disables the cache

disableCache(boolean $flag) 
Static

Parameters

$flag

boolean

Returns the set cache

getCache() : \Zend_Cache_Core
Static

Returns

\Zend_Cache_CoreThe set cache

Read the LDML file, get a single path defined value

getContent(string $locale, string $path, boolean|string $value = false) : string
Static

Parameters

$locale

string

$path

string

$value

booleanstring

Exceptions

\Zend_Locale_Exception

Returns

string

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

getList(string $locale, string $path, boolean|string $value = false) : array
Static

Parameters

$locale

string

$path

string

$value

booleanstring

Exceptions

\Zend_Locale_Exception

Returns

array

Returns true when a cache is set

hasCache() : boolean
Static

Returns

boolean

Removes any set cache

removeCache() : void
Static

Set a cache for Zend_Locale_Data

setCache(\Zend_Cache_Core $cache) 
Static

Parameters

$cache

\Zend_Cache_Core

A cache frontend

Filter an ID to only allow valid variable characters

_filterCacheId(string $value) : string
Static

Parameters

$value

string

Returns

string

Find the details for supplemental calendar datas

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

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
Static

Parameters

$locale

string\Zend_Locale

Locale to check

Exceptions

\Zend_Locale_Exception

Returns

string

Find possible routing to other path or locale

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

Parameters

$locale

string

$path

string

$attribute

string

$value

string

$temp

array

Exceptions

\Zend_Locale_Exception

Returns

boolean

Read the right LDML file

_getFile(string $locale, string $path, string|boolean $attribute = false, string|boolean $value = false, array $temp = array()) : array
Static

Parameters

$locale

string

$path

string

$attribute

stringboolean

$value

stringboolean

$temp

array

Exceptions

\Zend_Locale_Exception

Returns

array

Internal method to check if the given cache supports tags

_getTagSupportForCache() : boolean
Static

Returns

boolean

Read the content from locale

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

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

Default

null
Static
 

Internal option, cache disabled

$_cacheDisabled : boolean

Default

false
Static
 

Internal value to remember if cache supports tags

$_cacheTags : boolean

Default

false
Static
 

Locale files

$_ldml : array

Default

array()
Static
 

List of values which are collected

$_list : array

Default

array()
Static