Class Zend_Config_Xml

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

Located in /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
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".

  • throws: Zend_Config_Exception
  • access: public
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.

  • throws: Zend_Config_Exception
  • access: protected
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::toArray()
 Zend_Config::valid()
 Zend_Config::_assertValidExtend()
 Zend_Config::__get()
 Zend_Config::__isset()
 Zend_Config::__set()

Documentation generated on Sun, 27 May 2007 23:28:43 -0700 by phpDocumentor 1.3.2