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

  • xml
  • xml_Node

Class xml

XML-based language repository.

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\Translation\Language
Extended by Core\Translation\Language\Driver\xml
Namespace: Core\Translation\Language\Driver
Package: Core\Translation\Language
Since: 3.1
Requires: PHP 5.3, SimpleXML
Version: 1.0
Located at Translation/Language/Driver/xml.inc.php

Methods summary

protected
# __construct( Core\URI $uri )

Parameters

$uri
Configuration URI.

Throws

Core\Exception\Runtime
The resolved XML language repository file is malformed.
Core\Exception\InvalidArgument
No XML repository file found for given domain and locale.

Since

3.1

Overrides

Core\Translation\Language::__construct
public Core\Translation\Language\Driver\xml_Node
# getDataForKey( string $key )

KDC access variant for Core\Translation\Language\Driver\xml::query() method.

KDC access variant for Core\Translation\Language\Driver\xml::query() method.

Parameters

$key
See Core\Translation\Language\Driver\xml::query() method.

Returns

Core\Translation\Language\Driver\xml_Node
See Core\Translation\Language\Driver\xml::query() method.

Throws

Core\Exception\UndefinedKey
Requested data field does not exist.

Since

3.1

Overrides

Core\Field::getDataForKey
public Core\Translation\Language_Node
# query( string $path )

Returns a language repository entry for a key path.

Returns a language repository entry for a key path.

Parameters

$path

Hierarchical key path to retrieve the language repository entry for. Each segment is delimited by a dot character. A key path must not necessarily end in a leaf but might as well be used to get a language entry node that is used for subsequent queries with relative paths.

Returns

Core\Translation\Language_Node
Language repository entry identified by the provided key path.

Since

3.1

Methods inherited from Core\Translation\Language

__invoke(), autocreate()

Methods inherited from Core\Field

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(), getValueForKey(), getValueForKeyPath(), getValueForUndefinedKey(), hash(), issetValueForKey(), setValueForKey(), setValueForKeyPath(), setValueForUndefinedKey(), uuid()

Constants summary

string PathParameter

Base path of language repository. For each domain a separate file is expected with the name of the domain (default domain is "default"), grouped in subdirectories for each locale.

Base path of language repository. For each domain a separate file is expected with the name of the domain (default domain is "default"), grouped in subdirectories for each locale.

Since

3.1
# 'path'
string XMLNS

XML namespace for language repostory files.

XML namespace for language repostory files.

Link

http://xmlns.xplo-re.net/core/translation/language/1.0

Since

3.1
# 'http://xmlns.xplo-re.net/core/translation/language/1.0'

Constants inherited from Core\Object

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

Properties summary

protected array $_v_parameters

Associative array of configuration parameters.

Associative array of configuration parameters.

Since

3.1
#
protected Core\Translation\Language\Driver\xml_Node $_v_rootNode

Repository root node.

Repository root node.

Since

3.1
#

Properties inherited from Core\Translation\Language

$_v_domain, $_v_locale

Properties inherited from Core\Field

$_v_data

Magic properties

public read-only array $parameters

Associative array of configuration parameters.

public read-only Core\Translation\Language\Driver\xml_Node $rootNode

Repository root node.

Magic properties inherited from Core\Translation\Language

$domain, $locale

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