Locale/Data.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Locale  
Subpackage
Data  
Version
$Id$  

\Zend_Locale_Data

Package: Zend_Locale\Data
Locale data reader, handles the CLDR
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprivate\Zend_Cache_Core $_cache = null
static
Internal cache for ldml values
Default valuenullDetails
Type
\Zend_Cache_Core
Access
private  
>VPropertyprivateboolean $_cacheDisabled = false
static
Internal option, cache disabled
Default valuefalseDetails
Type
boolean
Access
private  
>VPropertyprivateboolean $_cacheTags = false
static
Internal value to remember if cache supports tags
Default valuefalseDetails
Type
boolean
>VPropertyprivate\ressource $_ldml = array()
static
Locale files
Default valuearray()Details
Type
\ressource
Access
private  
>VPropertyprivatearray $_list = array()
static
List of values which are collected
Default valuearray()Details
Type
array
Access
private  

Methods

methodprivate_calendarDetail(string $locale, array $list) : string
static

Find the details for supplemental calendar datas

Parameters
NameTypeDescription
$localestring

Locale for Detaildata

$listarray

List to search

Returns
TypeDescription
stringKey for Detaildata
methodprivate_checkLocale(string | \Zend_Locale $locale) : string
static

Internal function for checking the locale

Parameters
NameTypeDescription
$localestring | \Zend_Locale

Locale to check

Returns
TypeDescription
string
methodprivate_findRoute(string $locale, string $path, string $attribute, string $value, array $temp) : void
static

Find possible routing to other path or locale

Parameters
NameTypeDescription
$localestring
$pathstring
$attributestring
$valuestring
$temparray
Throws
ExceptionDescription
\Zend_Locale_Exception
Details
Access
private  
methodprivate_getFile(string $locale, string $path, string $attribute = false, string $value = false,  $temp = array()) : void
static

Read the right LDML file

Parameters
NameTypeDescription
$localestring
$pathstring
$attributestring
$valuestring
$temp
Details
Access
private  
methodprivate_getTagSupportForCache() : void
static

Internal method to check if the given cache supports tags

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

Read the content from locale

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
Parameters
NameTypeDescription
$localestring
$pathstring
$attributestring
$valuestring
$temp
Returns
TypeDescription
array
Details
Access
private  
methodpublicclearCache() : void
static

Clears all set cache data

methodpublicdisableCache(\unknown_type $flag) : void
static

Disables the cache

Parameters
NameTypeDescription
$flag\unknown_type
methodpublicgetCache() : \Zend_Cache_Core
static

Returns the set cache

Returns
TypeDescription
\Zend_Cache_CoreThe set cache
methodpublicgetContent(string $locale, string $path, string $value = false) : string
static

Read the LDML file, get a single path defined value

Parameters
NameTypeDescription
$localestring
$pathstring
$valuestring
Returns
TypeDescription
string
Details
Access
public  
methodpublicgetList(string $locale, string $path, string $value = false) : array
static

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

Parameters
NameTypeDescription
$localestring
$pathstring
$valuestring
Returns
TypeDescription
array
Details
Access
public  
methodpublichasCache() : boolean
static

Returns true when a cache is set

Returns
TypeDescription
boolean
methodpublicremoveCache() : void
static

Removes any set cache

methodpublicsetCache(\Zend_Cache_Core $cache) : void
static

Set a cache for Zend_Locale_Data

Parameters
NameTypeDescription
$cache\Zend_Cache_Core

A cache frontend

Documentation was generated by phpDocumentor 2.2.0 .