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.
boolean $_allowModifications = ''Whether in-memory modifications to configuration data are allowed
Detailsinteger $_count = ''Number of elements in configuration data
Detailsarray $_data = ''Contains array of configuration data
Detailsarray $_extends = 'array'This is used to track section inheritance. The keys are names of sections that extend other sections, and the values are the extended sections.
Detailsinteger $_index = ''Iteration index
Detailsstring $_loadFileErrorStr = 'null'Load file error string.
Is null if there was no error while file loading
Detailsmixed $_loadedSection = ''Contains which config file sections were loaded. This is null if all sections were loaded, a string name if one section is loaded and an array of string names if multiple sections were loaded.
Detailsboolean $_skipNextIteration = ''Used when unsetting values during iteration to ensure we do not skip the next element
Details__clone(
)
:
voidDeep clone of this instance to ensure that nested Zend_Configs are also cloned.
Details__construct(
array $array, boolean $allowModifications
=
false
)
:
voidZend_Config provides a property based interface to an array. The data are read-only unless $allowModifications is set to true on construction.
Zend_Config also implements Countable and Iterator to facilitate easy access to the data.
Details__get(
string $name
)
:
mixedMagic function so that $obj->value will work.
Details__isset(
string $name
)
:
booleanSupport isset() overloading on PHP 5.1
Details__set(
string $name, mixed $value
)
:
voidOnly allow setting of a property if $allowModifications was set to true on construction. Otherwise, throw an exception.
Details__unset(
string $name
)
:
voidSupport unset() overloading on PHP 5.1
Details_arrayMergeRecursive(
mixed $firstArray, mixed $secondArray
)
:
arrayMerge two arrays recursively, overwriting keys of the same name in $firstArray with the value in $secondArray.
Details_assertValidExtend(
string $extendingSection, string $extendedSection
)
:
voidThrows an exception if $extendingSection may not extend $extendedSection, and tracks the section extension if it is valid.
Details_loadFileErrorHandler(
integer $errno, string $errstr, string $errfile, integer $errline
)
:
Handle any errors from simplexml_load_file or parse_ini_file
DetailsareAllSectionsLoaded(
)
:
booleanReturns true if all sections were loaded
Detailscount(
)
:
intDefined by Countable interface
Detailscurrent(
)
:
mixedDefined by Iterator interface
Detailsget(
string $name, mixed $default
=
null
)
:
mixedRetrieve a value and return $default if there is no element set.
DetailsgetExtends(
)
:
arrayGet the current extends
DetailsgetSectionName(
)
:
mixedReturns the section name(s) loaded.
Detailskey(
)
:
mixedDefined by Iterator interface
Detailsmerge(
Zend_Config $merge
)
:
Zend_ConfigMerge another Zend_Config with this one. The items in $merge will override the same named items in the current config.
Detailsnext(
)
:
Defined by Iterator interface
DetailsreadOnly(
)
:
booleanReturns if this Zend_Config object is read only or not.
Detailsrewind(
)
:
Defined by Iterator interface
DetailssetExtend(
string $extendingSection, string $extendedSection
=
null
)
:
voidSet an extend for Zend_Config_Writer
DetailssetReadOnly(
)
:
Prevent any more modifications being made to this instance. Useful after merge() has been used to merge multiple Zend_Config objects into one object which should then not be modified again.
DetailstoArray(
)
:
arrayReturn an associative array of the stored data.
Detailsvalid(
)
:
booleanDefined by Iterator interface
Details