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

  • Authentication
  • Authentication_Token
  • Autoloader
  • Cache
  • Charset
  • ClassDescriptor
  • Closure
  • Controller
  • Converter
  • Date
  • Decoder
  • Delegate
  • Dispatcher
  • Encoder
  • Env
  • Env_Field
  • Env_File
  • Env_FileList
  • Env_Request
  • Env_SERVER
  • Exchange
  • Fault
  • Field
  • Filter
  • Filter_Value
  • Formatter
  • Hash
  • IP
  • Loader
  • Locale
  • Locale_Iterator
  • Locale_Node
  • Log
  • Module
  • Module_Iterator
  • Nothing
  • Object
  • OS
  • Plugin
  • Profiler
  • Query
  • Registry
  • Resource
  • Server
  • Session
  • Session_Token
  • Set
  • Storage
  • Storage_Result
  • Storage_Statement
  • Stream
  • String
  • Translation
  • URI
  • URI_Parameters
  • UUID
  • Value
  • Version
  • View

Interfaces

  • Accessor
  • Chainable
  • Comparable
  • Configurable
  • Equality
  • Identity
  • Inquiry
  • Masquerade
  • Mutator
  • SeekableStream
  • Storable
  • Variator

Exceptions

  • Exception

Constants

  • Copyright
  • ProductName
  • UseVersion
  • Version

Functions

  • ns_expand
  • ns_file_exists
  • ns_get_version
  • ns_resolve

Class Locale_Node

Data node for parsed LDML locale data. Attributes are accessible via KDC field access, value and children via the corresponding KVC properties.

Core\Object implements Core\Chainable
Extended by Core\Set implements Core\Accessor
Extended by Core\Set\Mutable implements Core\Mutator
Extended by Core\Field implements Core\Inquiry
Extended by Core\Locale_Node
Namespace: Core
Package: Core\Locale
Since: 3.0
Since: PHP 5.3
Version: 1.0
Located at Locale.inc.php

Methods summary

public
# __construct( array $children = null, array $attributes = null, mixed $value = null )

Initialises a locale data node.

Initialises a locale data node.

Parameters

$children
Optional. Array of child nodes of the new data node.
$attributes
Optional. Hash of node attributes.
$value
Optional. Value of node.

Since

3.0
public string[]
# __sleep( )

Returns property names for serialisation.

Returns property names for serialisation.

Returns

string[]

Since

3.0
public array
# attributes( )

Returns a hash of associated node attributes.

Returns a hash of associated node attributes.

Returns

array
Hash of associated node attributes.

Since

3.0
public Core\Locale_Node[]
# children( )

Returns an array of child nodes.

Returns an array of child nodes.

Returns

Core\Locale_Node[]
Array of child nodes.

Since

3.0
public Core\Locale_Node
# getValueForKey( string $key )

Retrieves a child node by key.

Retrieves a child node by key.

Parameters

$key
Key of child node to retrieve.

Returns

Core\Locale_Node
Retrieved child node.

Throws

Core\Exception\UndefinedKey
No child node with the given key exists.

See

Core\Locale_Node::issetValueForKey()

Since

3.0

Overrides

Core\Object::getValueForKey
public boolean
# issetValueForKey( $key )

Tests, whether a child node for a given key exists.

Tests, whether a child node for a given key exists.

Parameters

$key
to test for existence.

Returns

boolean
true if a child node with the given key exists, otherwise false.

Since

3.0

Overrides

Core\Object::issetValueForKey
public mixed
# query( $path )

Returns the value for a locale data key path relative to the node.

Returns the value for a locale data key path relative to the node.

Parameters

$path
of locale data node to return value for.

Returns

mixed

Value of locale data node identified by the provided key path relative to the current node.

Since

3.1
public mixed
# value( )

Returns the value associated to the node.

Returns the value associated to the node.

Returns

mixed
Value associated to the node.

Since

3.0

Methods inherited from Core\Field

getDataForKey(), getDataForKeys(), getDataForUndefinedKey(), issetDataForKey(), offsetExists(), offsetGet(), offsetSet(), offsetUnset()

Methods inherited from Core\Set\Mutable

__set(), __unset()

Methods inherited from Core\Set

__get(), __isset()

Methods inherited from Core\Object

__autocreateFactory(), __call(), __processParameters(), __toString(), attachMethod(), chain(), getValueForKeyPath(), getValueForUndefinedKey(), hash(), setValueForKey(), setValueForKeyPath(), setValueForUndefinedKey(), uuid()

Constants summary

Constants inherited from Core\Object

AnyParameterType, AutochainParameterType, AutocreateParameterType, BooleanParameterType, CharParameterType, EnumParameterType, IntegerParameterType, RealParameterType, StringParameterType, UserParameterType

Properties summary

protected array $_children

Child nodes of data node.

Child nodes of data node.

Since

3.0
#
protected mixed $_value

Value of the data node.

Value of the data node.

Since

3.0
#

Properties inherited from Core\Field

$_v_data

Magic properties inherited from Core\Field

$data

Magic properties inherited from Core\Object

$hash, $uuid

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