xplo.re Medusa Core Framework 3.1
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Event
  • Todo
  • Download

Namespaces

  • Core
    • Authentication
      • Auto
        • Driver
      • Driver
    • Cache
      • Driver
    • Charset
      • Driver
    • Configuration
    • Controller
    • Converter
      • Driver
    • Decoder
      • Driver
    • Encoder
      • Driver
    • Env
      • Authentication
      • Locale
      • Proxy
      • Server
        • HTTP
        • Redirect
        • X
    • Exception
    • Exchange
      • Driver
    • Field
    • Filter
      • Driver
    • Formatter
      • Driver
        • coreuimarkup
          • Token
    • Hash
    • Loader
    • Locale
    • Log
      • Driver
    • Module
      • Dependency
        • Requirement
          • Core
          • PHP
      • Linkage
        • Driver
    • PDF
    • Plugin
    • Query
      • Driver
    • Server
      • Driver
    • Session
      • Driver
    • Set
    • Storage
      • Driver
      • Field
        • Element
    • Stream
      • Driver
    • String
    • Translation
      • Driver
      • Language
        • Driver
    • URI
      • Driver
    • Version
    • View
      • Driver
        • coreui
          • Control
            • Button
            • Table
          • Element
        • htmlbuilder
          • Tags
        • yui
          • Modules
  • None
  • PHP

Classes

  • Uncached

Class Uncached

Locale implementation for un-cached data entries that parses LDML files.

Core\Object implements Core\Chainable
Extended by Core\Set implements Core\Accessor
Extended by Core\Locale
Extended by Core\Locale\Uncached
Namespace: Core\Locale
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, Core\Cache $cache )

Initialises a locale by parsing the corresponding LDML file.

Initialises a locale by parsing the corresponding LDML file.

Parameters

$data
Hash of initial locale properties.
$cache
Discarded.

Throws

Core\Exception\InvalidArgument
LDML file for requested locale not found.

Since

3.0

Overrides

Core\Locale::__construct
protected
# _accumulateChildren( array & $set, DOMNode $node, DOMXPath $xpath )

Selects node and adds it to target set, unless the node is an alias. In that case the alias is searched instead.

Selects node and adds it to target set, unless the node is an alias. In that case the alias is searched instead.

Parameters

$set
Output array for collected nodes.
$node
Node to collect.
$xpath
XPath instance used for DOM search.

Throws

Exception
Unsupported alias type encountered.

Since

3.0
protected Core\Locale_Node|string
# _convertLDML( $path, DOMXPath $xpath, DOMNode $node )

Converts an LDML node to a locale data node including post-processing.

Converts an LDML node to a locale data node including post-processing.

Parameters

$path
path.
$xpath
XPath instance used for DOM search.
$node
Node to convert.

Returns

Core\Locale_Node|string

If the LDML node is a text node, the text is returned, otherwise the reference to a new Core\Locale_Node or null, if the node is empty, i.e. does not contain data.

Since

3.0
protected boolean
# _convertLDML_Boolean( string $path, array $children, array $attributes, $value )

Converts a node value to Boolean.

Converts a node value to Boolean.

Parameters

$path
Node path.
$children
Array of child nodes.
$attributes
Array of node attributes.
$value
value.

Returns

boolean

Since

3.0
protected Core\Locale_Node
# _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.

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.

Parameters

$path
Node path.
$children
Array of child nodes.
$attributes
Array of node attributes.
$value
value.

Returns

Core\Locale_Node

Since

3.0
protected string
# _convertLDML_Pure( string $path, array $children, array $attributes, $value )

Converts a node to it's direct string value.

Converts a node to it's direct string value.

Parameters

$path
Node path.
$children
Array of child nodes.
$attributes
Array of node attributes.
$value
value.

Returns

string

Since

3.0
protected null
# _convertLDML_Skip( string $path, array $children, array $attributes, $value )

Replaces a locale node by null.

Replaces a locale node by null.

Parameters

$path
Node path.
$children
Array of child nodes.
$attributes
Array of node attributes.
$value
value.

Returns

null

Since

3.0
protected Core\Locale_Node
# _merge( Core\Locale_Node|mixed $nodeA, Core\Locale_Node|mixed $nodeB )

Merges two nodes.

Merges two nodes.

Parameters

$nodeA
Node to merge.
$nodeB
Node to merge.

Returns

Core\Locale_Node

Merged locale node or one of the input nodes, if the other input node is not a node instance.

Since

3.0
protected Core\Locale_Node
# _parse( Core\Cache $cache, $baseName )

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.

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.

Parameters

$cache
Cache instance to use.
$baseName
of locale to parse and merge with parent data.

Returns

Core\Locale_Node

Merged or from cache loaded locale data node or null, for the virtual root locale.

Since

3.0

Methods inherited from Core\Locale

_parseLocale(), active(), all(), exists(), get(), hash(), iterator(), query(), set(), valid()

Methods inherited from Core\Set

__get(), __isset()

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.

Hash of post-processor methods for LDML paths.

Since

3.0
# 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:

  • base

    Default, integrate value into parent node.

  • flat

    Create as sub-array, where the keys of the sub-array correspond to the child node tag.

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:

  • base Default, integrate value into parent node.

  • flat Create as sub-array, where the keys of the sub-array correspond to the child node tag.

Since

3.0
# 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

Magic properties inherited from Core\Object

$hash, $uuid

xplo.re Medusa Core Framework 3.1 API documentation generated by ApiGen