Docs For Class Zend_Config_Xml

## Class 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)

    Zend_Config
       |
       --Zend_Config_Xml

Method Summary
Zend_Config_Xml __construct (string $filename, mixed $section, [boolean $allowModifications = false])
array _arrayMergeRecursive (array $array1, array $array2)
array _processExtends (SimpleXMLElement $element, string $section, [array $config = array()])
array _toArray (SimpleXMLElement $xmlObject)
Variables

#### Inherited Variables

Inherited from Zend_Config

> Zend_Config::$_allowModifications
> Zend_Config::$_count
> Zend_Config::$_data
> Zend_Config::$_extends
> Zend_Config::$_index
> Zend_Config::$_loadedSection

Methods
Constructor __construct (line 55)

Loads the section $section from the config file $filename 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".

- access: public
- throws: Zend_Config_Exception

Zend_Config_Xml __construct (string $filename, mixed $section, [boolean $allowModifications = false])

- string $filename
- mixed $section
- boolean $allowModifications

Redefinition of:

Zend_Config::__construct()
  Zend_Config provides a property based interface to an array. The data are read-only unless $allowModifications is set to true on construction.

_arrayMergeRecursive (line 146)

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 99)

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 125)

Returns an associative and possibly multidimensional array from a SimpleXMLElement.

- access: protected

array _toArray (SimpleXMLElement $xmlObject)

- SimpleXMLElement $xmlObject

#### Inherited Methods

Inherited From Zend_Config

> Zend_Config::__construct()
> Zend_Config::areAllSectionsLoaded()
> Zend_Config::asArray()
> Zend_Config::count()
> Zend_Config::current()
> Zend_Config::getSectionName()
> Zend_Config::key()
> Zend_Config::next()
> Zend_Config::rewind()
> Zend_Config::valid()
> Zend_Config::_assertValidExtend()
> Zend_Config::_isValidKeyName()
> Zend_Config::__get()
> Zend_Config::__isset()
> Zend_Config::__set()

Documentation generated on Sun, 29 Oct 2006 21:27:37 -0600 by phpDocumentor 1.3.0RC6