Property | Type | Description | |
---|---|---|---|
$_allowModifications | boolean | Whether in-memory modifications to configuration data are allowed | |
$_count | integer | Number of elements in configuration data | |
$_data | array | Contains array of configuration data | |
$_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. | |
$_index | integer | Iteration index | |
$_loadFileErrorStr | string | Is null if there was no error while file loading | |
$_loadedSection | mixed | 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. | |
$_skipNextIteration | boolean | Used when unsetting values during iteration to ensure we do not skip the next element |
Method | Description | |
---|---|---|
__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. | |
__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 | |
areAllSectionsLoaded ( ) : boolean | Returns true if all sections were loaded | |
count ( ) : integer | 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 |
Method | Description | |
---|---|---|
_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 |
public areAllSectionsLoaded ( ) : boolean | ||
return | boolean |
public getSectionName ( ) : mixed | ||
return | mixed |
public merge ( Zend_Config $merge ) : Zend_Config | ||
$merge | Zend_Config | |
return | Zend_Config |
public setReadOnly ( ) |
protected bool $_allowModifications | ||
return | boolean |
protected int $_count | ||
return | integer |
protected array $_data | ||
return | array |
protected array $_extends | ||
return | array |
protected string $_loadFileErrorStr | ||
return | string |
protected mixed $_loadedSection | ||
return | mixed |
protected bool $_skipNextIteration | ||
return | boolean |