## Zend_Config_Xml

Description

- license: New BSD License
- copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Config/Xml.php (line 35)

Method Summary
static array load (string $filename, string $section)
array _arrayMergeRecursive (array $array1, array $array2)
array _processExtends (SimpleXMLElement $element, string $section, [array $config = array()])
array _toArray (SimpleXMLElement $xmlObject)
Methods
static load (line 55)

Load the section $section from the config file $filename into an associative array.

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".

- access: public
- throws: Zend_Config_Exception

array load (string $filename, string $section)

- string $filename
- string $section

_arrayMergeRecursive (line 129)

Merge two arrays recursively, overwriting keys of the same name name in $array1 with the value in $array2.

- access: protected

array _arrayMergeRecursive (array $array1, array $array2)

- array $array1
- array $array2

_processExtends (line 84)

Helper function to process each element in the section and handle the "extends" inheritance attribute.

- access: protected
- throws: Zend_Config_Exception

array _processExtends (SimpleXMLElement $element, string $section, [array $config = array()])

- SimpleXMLElement $element
- string $section
- array $config

_toArray (line 108)

Returns an associative and possibly multidimensional array from a SimpleXMLElement.

- access: protected

array _toArray (SimpleXMLElement $xmlObject)

- SimpleXMLElement $xmlObject

Documentation generated on Tue, 11 Jul 2006 12:18:18 -0500 by phpDocumentor 1.3.0RC6