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.
XML Adapter for Zend_Config
XML_NAMESPACE = 'http://framework.zend.com/xml/zend-config-xml/1.0/'
XML namespace for ZF-related tags and attributes
boolean $_skipExtends = 'false'
Whether to skip extends or not
__construct(
string $xml, mixed $section
=
null, boolean $options
=
false
)
:
Loads the section $section from the config file (or string $xml for access facilitated by nested object properties.
Sections are defined in the XML as children of the root element.
In order to extend another section, a section defines the "extends" attribute having a value of the section name from which the extending section inherits values.
Note that the keys in $section will override any keys of the same name in the sections that have been included via "extends".
_processExtends(
SimpleXMLElement $element, string $section, array $config
=
array
)
:
array
Helper function to process each element in the section and handle the "extends" inheritance attribute.
_toArray(
SimpleXMLElement $xmlObject
)
:
array|string
Returns a string or an associative and possibly multidimensional array from a SimpleXMLElement.