Class Uncached
Locale implementation for un-cached data entries that parses LDML files.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Locale
- Core\Locale\Uncached
Package: Core\Locale
Since: 3.0
Requires: PHP 5.3
Version: 1.0
Located at Locale/Uncached.inc.php
Methods summary
protected
|
#
__construct( array $data,
Initialises a locale by parsing the corresponding LDML file. |
protected
|
|
protected
|
|
protected
boolean
|
#
_convertLDML_Boolean( string $path, array $children, array $attributes, $value )
Converts a node value to Boolean. |
protected
|
#
_convertLDML_Identity( string $path, array $children, array $attributes, $value )
Post-processes a raw parsed identity node. The children subset is replaced with a new children set containing a new version index storing the merged information set of the version and generation nodes. |
protected
string
|
#
_convertLDML_Pure( string $path, array $children, array $attributes, $value )
Converts a node to it's direct string value. |
protected
null
|
#
_convertLDML_Skip( string $path, array $children, array $attributes, $value )
Replaces a locale node by null. |
protected
|
|
protected
|
#
_parse(
Parses LDML data for a given locale name recursively from the root LDML set down to the initially requested locale and merges the result into a single locale data node. The resulting node is automatically cached. If a cache entry for the requested locale already exists, the cached entry is used instead. |
Methods inherited from Core\Locale
_parseLocale()
,
active()
,
all()
,
exists()
,
get()
,
hash()
,
iterator()
,
query()
,
set()
,
valid()
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
Constants inherited from Core\Locale
All
,
CacheClass
,
CharacterType
,
Collate
,
LDMLPath
,
Messages
,
Monetary
,
Numeric
,
Time
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
array
|
$_ldmlPostProcessors
Hash of post-processor methods for LDML paths. |
#
array (
':characters:exemplarCharacters' => 'Pure',
':dates:calendars:calendar:am' => 'Pure',
':dates:calendars:calendar:dateFormats:dateFormatLength:dateFormat:pattern' => 'Pure',
':dates:calendars:calendar:dateTimeFormats:availableFormats:dateFormatItem' => 'Pure',
':dates:calendars:calendar:dateTimeFormats:dateTimeFormatLength:dateTimeFormat:pattern' => 'Pure',
':dates:calendars:calendar:days:dayContext:dayWidth:day' => 'Pure',
':dates:calendars:calendar:dateTimeFormats:intervalFormats:intervalFormatFallback' => 'Pure',
':dates:calendars:calendar:dateTimeFormats:intervalFormats:intervalFormatItem:greatestDifference' => 'Pure',
':dates:calendars:calendar:eras:eraAbbr:era' => 'Pure',
':dates:calendars:calendar:eras:eraNames:era' => 'Pure',
':dates:calendars:calendar:fields:field:displayName' => 'Pure',
':dates:calendars:calendar:fields:field:relative' => 'Pure',
':dates:calendars:calendar:months:monthContext:monthWidth:month' => 'Pure',
':dates:calendars:calendar:pm' => 'Pure',
':dates:calendars:calendar:quarters:quarterContext:quarterWidth:quarter' => 'Pure',
':dates:calendars:calendar:timeFormats:timeFormatLength:timeFormat:pattern' => 'Pure',
':dates:dateRangePattern' => 'Pure',
':dates:timeZoneNames:fallbackFormat' => 'Pure',
':dates:timeZoneNames:gmtFormat' => 'Pure',
':dates:timeZoneNames:gmtZeroFormat' => 'Pure',
':dates:timeZoneNames:hourFormat' => 'Pure',
':dates:timeZoneNames:hoursFormat' => 'Pure',
':dates:timeZoneNames:metazone:commonlyUsed' => 'Boolean',
':dates:timeZoneNames:metazone:long:daylight' => 'Pure',
':dates:timeZoneNames:metazone:long:generic' => 'Pure',
':dates:timeZoneNames:metazone:long:standard' => 'Pure',
':dates:timeZoneNames:metazone:short:daylight' => 'Pure',
':dates:timeZoneNames:metazone:short:generic' => 'Pure',
':dates:timeZoneNames:metazone:short:standard' => 'Pure',
':dates:timeZoneNames:regionFormat' => 'Pure',
':dates:timeZoneNames:zone:exemplarCity' => 'Pure',
':delimiters:alternateQuotationEnd' => 'Pure',
':delimiters:alternateQuotationStart' => 'Pure',
':delimiters:quotationEnd' => 'Pure',
':delimiters:quotationStart' => 'Pure',
':identity' => 'Identity',
':identity:language' => 'Skip',
':identity:territory' => 'Skip',
':localeDisplayNames:codePatterns:codePattern' => 'Pure',
':localeDisplayNames:keys:key' => 'Pure',
':localeDisplayNames:languages:language' => 'Pure',
':localeDisplayNames:measurementSystemNames:measurementSystemName' => 'Pure',
':localeDisplayNames:scripts:script' => 'Pure',
':localeDisplayNames:territories:territory' => 'Pure',
':localeDisplayNames:variants:variant' => 'Pure',
':numbers:currencies:currency:displayName' => 'Pure',
':numbers:currencies:currency:symbol' => 'Pure',
':numbers:currencyFormats:currencyFormatLength:currencyFormat:pattern' => 'Pure',
':numbers:currencyFormats:currencySpacing:afterCurrency:currencyMatch' => 'Pure',
':numbers:currencyFormats:currencySpacing:afterCurrency:insertBetween' => 'Pure',
':numbers:currencyFormats:currencySpacing:afterCurrency:surroundingMatch' => 'Pure',
':numbers:currencyFormats:currencySpacing:beforeCurrency:currencyMatch' => 'Pure',
':numbers:currencyFormats:currencySpacing:beforeCurrency:insertBetween' => 'Pure',
':numbers:currencyFormats:currencySpacing:beforeCurrency:surroundingMatch' => 'Pure',
':numbers:decimalFormats:decimalFormatLength:decimalFormat:pattern' => 'Pure',
':numbers:defaultNumberingSystem' => 'Pure',
':numbers:percentFormats:percentFormatLength:percentFormat:pattern' => 'Pure',
':numbers:scientificFormats:scientificFormatLength:scientificFormat:pattern' => 'Pure',
':numbers:symbols:decimal' => 'Pure',
':numbers:symbols:exponential' => 'Pure',
':numbers:symbols:group' => 'Pure',
':numbers:symbols:infinity' => 'Pure',
':numbers:symbols:list' => 'Pure',
':numbers:symbols:minusSign' => 'Pure',
':numbers:symbols:nan' => 'Pure',
':numbers:symbols:nativeZeroDigit' => 'Pure',
':numbers:symbols:patternDigit' => 'Pure',
':numbers:symbols:percentSign' => 'Pure',
':numbers:symbols:perMille' => 'Pure',
':numbers:symbols:plusSign' => 'Pure',
':units:unit:unitPattern' => 'Pure',
':posix:messages:nostr' => 'Pure',
':posix:messages:yesstr' => 'Pure',
':references' => 'Skip',
)
|
protected
array
|
$_ldmlSets
Controls processing of combined leaf nodes, where information from a single or multiple leaves is merged into the parent node. The value corresponds to the key that holds the data that is further processed according to the merge type optionally defined after a comma:
|
#
array (
':dates:calendars:calendar' => 'type',
':dates:calendars:calendar:dateFormats:dateFormatLength' => 'type',
':dates:calendars:calendar:dateTimeFormats:availableFormats:dateFormatItem' => 'id,flat',
':dates:calendars:calendar:dateTimeFormats:dateTimeFormatLength' => 'type',
':dates:calendars:calendar:dateTimeFormats:intervalFormats:intervalFormatItem' => 'id,flat',
':dates:calendars:calendar:dateTimeFormats:intervalFormats:intervalFormatItem:greatestDifference' => 'id,flat',
':dates:calendars:calendar:days:dayContext' => 'type',
':dates:calendars:calendar:days:dayContext:dayWidth' => 'type',
':dates:calendars:calendar:days:dayContext:dayWidth:day' => 'type',
':dates:calendars:calendar:eras:eraAbbr:era' => 'type',
':dates:calendars:calendar:eras:eraNames:era' => 'type',
':dates:calendars:calendar:fields:field' => 'type',
':dates:calendars:calendar:fields:field:relative' => 'type,flat',
':dates:calendars:calendar:months:monthContext' => 'type',
':dates:calendars:calendar:months:monthContext:monthWidth' => 'type',
':dates:calendars:calendar:months:monthContext:monthWidth:month' => 'type',
':dates:calendars:calendar:quarters:quarterContext' => 'type',
':dates:calendars:calendar:quarters:quarterContext:quarterWidth' => 'type',
':dates:calendars:calendar:quarters:quarterContext:quarterWidth:quarter' => 'type',
':dates:calendars:calendar:timeFormats:timeFormatLength' => 'type',
':dates:timeZoneNames:metazone' => 'type,flat',
':dates:timeZoneNames:zone' => 'type,flat',
':localeDisplayNames:codePatterns:codePattern' => 'type',
':localeDisplayNames:keys:key' => 'type',
':localeDisplayNames:languages:language' => 'type',
':localeDisplayNames:measurementSystemNames:measurementSystemName' => 'type',
':localeDisplayNames:scripts:script' => 'type',
':localeDisplayNames:territories:territory' => 'type',
':localeDisplayNames:types:type' => 'type',
':localeDisplayNames:variants:variant' => 'type',
':numbers:currencies:currency' => 'type',
':units:unit' => 'type',
':units:unit:unitPattern' => 'count,flat',
)
|
Properties inherited from Core\Locale
$_activeInstances
,
$_v_data
,
$_v_language
,
$_v_name
,
$_v_options
,
$_v_script
,
$_v_territory
,
$_v_variant
Magic properties inherited from Core\Locale
$data
,
$language
,
$name
,
$options
,
$script
,
$territory
,
$variant