Config.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Config
- Version
- $Id$
Package: Zend_Config- Implements
- Children
- \Zend_Config_Yaml
- \Zend_Config_Json
- \Zend_Config_Xml
- \Zend_Config_Ini
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties



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.
Default valuearray()
Details- Type
- array
Methods



__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.
ParametersName | Type | Description |
---|
$array | array | |
---|
$allowModifications | boolean | |
---|



__get(string $name) : mixed
Magic function so that $obj->value will work.
ParametersName | Type | Description |
---|
$name | string | |
---|
Returns 


__isset(string $name) : boolean
Support isset() overloading on PHP 5.1
ParametersName | Type | Description |
---|
$name | string | |
---|
Returns 


__set(string $name, mixed $value) : void
Only allow setting of a property if $allowModifications
was set to true on construction. Otherwise, throw an exception.
ParametersName | Type | Description |
---|
$name | string | |
---|
$value | mixed | |
---|
Throws 


__unset(string $name) : void
Support unset() overloading on PHP 5.1
ParametersName | Type | Description |
---|
$name | string | |
---|
Throws 


_arrayMergeRecursive(mixed $firstArray, mixed $secondArray) : array
Merge two arrays recursively, overwriting keys of the same name
in $firstArray with the value in $secondArray.
ParametersName | Type | Description |
---|
$firstArray | mixed | First array |
---|
$secondArray | mixed | Second array to merge into first array |
---|
Returns 


_assertValidExtend(string $extendingSection, string $extendedSection) : void
Throws an exception if $extendingSection may not extend $extendedSection,
and tracks the section extension if it is valid.
ParametersName | Type | Description |
---|
$extendingSection | string | |
---|
$extendedSection | string | |
---|
Throws 


_loadFileErrorHandler(integer $errno, string $errstr, string $errfile, integer $errline) : void
Handle any errors from simplexml_load_file or parse_ini_file
ParametersName | Type | Description |
---|
$errno | integer | |
---|
$errstr | string | |
---|
$errfile | string | |
---|
$errline | integer | |
---|



get(string $name, mixed $default = null) : mixed
Retrieve a value and return $default if there is no element set.
ParametersName | Type | Description |
---|
$name | string | |
---|
$default | mixed | |
---|
Returns 


setExtend(string $extendingSection, string $extendedSection = null) : void
Set an extend for Zend_Config_Writer
ParametersName | Type | Description |
---|
$extendingSection | string | |
---|
$extendedSection | string | |
---|