Zend Framework
3.0
|
Provides a property based interface to an array. More...
Public Member Functions | |
__construct (array $array, $allowModifications=false) | |
Constructor. | |
get ($name, $default=null) | |
Retrieve a value and return $default if there is no element set. | |
__get ($name) | |
Magic function so that $obj->value will work. | |
__set ($name, $value) | |
Set a value in the config. | |
__clone () | |
Deep clone of this instance to ensure that nested Zend are also cloned. | |
__isset ($name) | |
isset() overloading | |
__unset ($name) | |
unset() overloading | |
count () | |
count(): defined by Countable interface. | |
current () | |
current(): defined by Iterator interface. | |
key () | |
key(): defined by Iterator interface. | |
next () | |
next(): defined by Iterator interface. | |
rewind () | |
rewind(): defined by Iterator interface. | |
valid () | |
valid(): defined by Iterator interface. | |
offsetExists ($offset) | |
offsetExists(): defined by ArrayAccess interface. | |
offsetGet ($offset) | |
offsetGet(): defined by ArrayAccess interface. | |
offsetSet ($offset, $value) | |
offsetSet(): defined by ArrayAccess interface. | |
offsetUnset ($offset) | |
offsetUnset(): defined by ArrayAccess interface. | |
isReadOnly () | |
Returns whether this Config object is read only or not. | |
Protected Attributes | |
$allowModifications | |
$data = [] | |
$skipNextIteration | |
Provides a property based interface to an array.
The data are read-only unless $allowModifications is set to true on construction.
Implements Countable, Iterator and ArrayAccess to facilitate easy access to the data.
__construct | ( | array | $array, |
$allowModifications = false |
|||
) |
Constructor.
Data is read-only unless $allowModifications is set to true on construction.
array | $array | |
bool | $allowModifications |
__clone | ( | ) |
Deep clone of this instance to ensure that nested Zend are also cloned.
__get | ( | $name | ) |
Magic function so that $obj->value will work.
string | $name |
__isset | ( | $name | ) |
isset() overloading
string | $name |
__set | ( | $name, | |
$value | |||
) |
Set a value in the config.
Only allow setting of a property if $allowModifications was set to true on construction. Otherwise, throw an exception.
string | $name | |
mixed | $value |
Exception\RuntimeException |
__unset | ( | $name | ) |
unset() overloading
string | $name |
Exception\InvalidArgumentException |
count | ( | ) |
current | ( | ) |
get | ( | $name, | |
$default = null |
|||
) |
Retrieve a value and return $default if there is no element set.
string | $name | |
mixed | $default |
isReadOnly | ( | ) |
Returns whether this Config object is read only or not.
key | ( | ) |
next | ( | ) |
offsetExists | ( | $offset | ) |
offsetExists(): defined by ArrayAccess interface.
mixed | $offset |
offsetGet | ( | $offset | ) |
offsetGet(): defined by ArrayAccess interface.
mixed | $offset |
offsetSet | ( | $offset, | |
$value | |||
) |
offsetSet(): defined by ArrayAccess interface.
mixed | $offset | |
mixed | $value |
offsetUnset | ( | $offset | ) |
offsetUnset(): defined by ArrayAccess interface.
mixed | $offset |
rewind | ( | ) |
valid | ( | ) |
|
protected |
|
protected |
|
protected |