API Documentation

Locale/Data.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Locale
subpackage
Data
version
$Id: Data.php 21065 2010-02-16 06:31:59Z thomas $
Classes
Zend_Locale_Data

Description

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.

Zend_Locale_Data

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Locale
subpackage
Data
Properties
$_ldml
$_list
$_cache
$_cacheDisabled
Methods
_readFile
_findRoute
_getFile
_calendarDetail
_checkLocale
getList
getContent
getCache
setCache
hasCache
removeCache
clearCache
disableCache

Description

Locale data reader, handles the CLDR

Properties

$_cache

Zend_Cache_Core $_cache = 'null'

Internal cache for ldml values

Details

$_cache
Zend_Cache_Core
visibility
private
default
null
final
false
static
true
access
private

$_cacheDisabled

boolean $_cacheDisabled = 'false'

Internal option, cache disabled

Details

$_cacheDisabled
boolean
visibility
private
default
false
final
false
static
true
access
private

$_ldml

ressource $_ldml = 'array'

Locale files

Details

$_ldml
ressource
visibility
private
default
array
final
false
static
true
access
private

$_list

array $_list = 'array'

List of values which are collected

Details

$_list
array
visibility
private
default
array
final
false
static
true
access
private

Methods

_calendarDetail

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

Find the details for supplemental calendar datas

Arguments
$locale
string
Locale for Detaildata
$list
array
List to search
Output
string
Key for Detaildata
Details
visibility
private
final
false
static
true

_checkLocale

_checkLocale( string|Zend_Locale $locale ) : string

Internal function for checking the locale

Arguments
$locale
stringZend_Locale
Locale to check
Output
string
Details
visibility
private
final
false
static
true

_findRoute

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

Find possible routing to other path or locale

Arguments
$locale
string
$path
string
$attribute
string
$value
string
$temp
array
Details
visibility
private
final
false
static
true
access
private
throws

_getFile

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

Read the right LDML file

Arguments
$locale
string
$path
string
$attribute
string
$value
string
$temp
Details
visibility
private
final
false
static
true
access
private

_readFile

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

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

Arguments
$locale
string
$path
string
$attribute
string
$value
string
$temp
Output
array
Details
visibility
private
final
false
static
true
access
private

clearCache

clearCache( ) : void

Clears all set cache data

Details
visibility
public
final
false
static
true

disableCache

disableCache( unknown_type $flag ) :

Disables the cache

Arguments
$flag
unknown_type
Details
visibility
public
final
false
static
true

getCache

getCache( ) : Zend_Cache_Core

Returns the set cache

Output
Zend_Cache_Core
The set cache
Details
visibility
public
final
false
static
true

getContent

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

Read the LDML file, get a single path defined value

Arguments
$locale
string
$path
string
$value
string
Output
string
Details
visibility
public
final
false
static
true
access
public

getList

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

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

Arguments
$locale
string
$path
string
$value
string
Output
array
Details
visibility
public
final
false
static
true
access
public

hasCache

hasCache( ) : boolean

Returns true when a cache is set

Output
boolean
Details
visibility
public
final
false
static
true

removeCache

removeCache( ) : void

Removes any set cache

Details
visibility
public
final
false
static
true

setCache

setCache( Zend_Cache_Core $cache ) :

Set a cache for Zend_Locale_Data

Arguments
$cache
Zend_Cache_Core
A cache frontend
Details
visibility
public
final
false
static
true
Documentation was generated by DocBlox.