## Zend_Config_Ini

Description

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

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

Method Summary
static array load (string $filename, string $section)
array _processExtends (array $iniArray, string $section, [array $config = array()])
array _processKey (array $config, string $key, string $value)
array _processLevelsInKey (array $parent, string $key, string $value)
Methods
static load (line 67)

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

If any keys with $section are called "extends", then the section pointed to by the "extends" is then included into the properties. Note that the keys in $section will override any keys of the same name in the sections that have been included via "extends".

If any key includes a ".", then this will act as a separator to create a sub-property.

example ini file: [all] db.connection = database hostname = live

[staging] extends = all hostname = staging

after calling $data = Zend_Config_Ini::load($file, 'staging'); then $data['hostname'] = staging $data['db']['connection'] = database

- access: public
- throws: Zend_Config_Exception

array load (string $filename, string $section)

- string $filename
- string $section

_processExtends (line 97)

Helper function to process each element in the section and handle the "extends" inheritance keyword. Passes control to _processKey() to handle the "dot" sub-property syntax in each key.

- access: protected
- throws: Zend_Config_Exception

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

- array $iniArray
- string $section
- array $config

_processKey (line 131)

Assign the key's value to the property list. Handle the "dot" notation for sub-properties by passing control to processLevelsInKey().

- access: protected
- throws: Zend_Config_Exception

array _processKey (array $config, string $key, string $value)

- array $config
- string $key
- string $value

_processLevelsInKey (line 159)

Helper function to handle the "dot" namespace syntax in the key.

Uses "." as the separator.

- access: protected

array _processLevelsInKey (array $parent, string $key, string $value)

- array $parent
- string $key
- string $value

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