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
integer $_count = ''
Number of elements in configuration data
array $_data = ''
Contains array of configuration data
array $_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.
integer $_index = ''
Iteration index
string $_loadFileErrorStr = 'null'
Load file error string.
Is null if there was no error while file loading
mixed $_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.
boolean $_skipNextIteration = ''
Used when unsetting values during iteration to ensure we do not skip the next element
__clone(
)
:
void
Deep clone of this instance to ensure that nested Zend_Configs are also cloned.
__construct(
array $array, boolean $allowModifications
=
false
)
:
void
Zend_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.
__get(
string $name
)
:
mixed
Magic function so that $obj->value will work.
__isset(
string $name
)
:
boolean
Support isset() overloading on PHP 5.1
__set(
string $name, mixed $value
)
:
void
Only allow setting of a property if $allowModifications was set to true on construction. Otherwise, throw an exception.
__unset(
string $name
)
:
void
Support unset() overloading on PHP 5.1
_arrayMergeRecursive(
mixed $firstArray, mixed $secondArray
)
:
array
Merge two arrays recursively, overwriting keys of the same name in $firstArray with the value in $secondArray.
_assertValidExtend(
string $extendingSection, string $extendedSection
)
:
void
Throws an exception if $extendingSection may not extend $extendedSection, and tracks the section extension if it is valid.
_loadFileErrorHandler(
integer $errno, string $errstr, string $errfile, integer $errline
)
:
Handle any errors from simplexml_load_file or parse_ini_file
areAllSectionsLoaded(
)
:
boolean
Returns true if all sections were loaded
count(
)
:
int
Defined by Countable interface
current(
)
:
mixed
Defined by Iterator interface
get(
string $name, mixed $default
=
null
)
:
mixed
Retrieve a value and return $default if there is no element set.
getExtends(
)
:
array
Get the current extends
getSectionName(
)
:
mixed
Returns the section name(s) loaded.
key(
)
:
mixed
Defined by Iterator interface
merge(
Zend_Config $merge
)
:
Zend_Config
Merge another Zend_Config with this one. The items in $merge will override the same named items in the current config.
next(
)
:
Defined by Iterator interface
readOnly(
)
:
boolean
Returns if this Zend_Config object is read only or not.
rewind(
)
:
Defined by Iterator interface
setExtend(
string $extendingSection, string $extendedSection
=
null
)
:
void
Set an extend for Zend_Config_Writer
setReadOnly(
)
:
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.
toArray(
)
:
array
Return an associative array of the stored data.
valid(
)
:
boolean
Defined by Iterator interface