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.
Constructor.
Data is read-only unless $allowModifications is set to true on construction.
Parameters: |
|
---|
Retrieve a value and return $default if there is no element set.
Parameters: |
|
---|---|
Return type: | mixed |
Magic function so that $obj->value will work.
Parameters: | string – |
---|---|
Return type: | mixed |
Set a value in the config.
Only allow setting of a property if $allowModifications was set to true on construction. Otherwise, throw an exception.
Parameters: |
|
---|---|
Return type: | void |
Throws : | ExceptionRuntimeException |
Deep clone of this instance to ensure that nested ZendConfigs are also cloned.
Return type: | void |
---|
unset() overloading
Parameters: | string – |
---|---|
Return type: | void |
Throws : | ExceptionInvalidArgumentException |
count(): defined by Countable interface.
Return type: | integer |
---|
current(): defined by Iterator interface.
Return type: | mixed |
---|
key(): defined by Iterator interface.
Return type: | mixed |
---|
next(): defined by Iterator interface.
Return type: | void |
---|
rewind(): defined by Iterator interface.
Return type: | void |
---|
valid(): defined by Iterator interface.
Return type: | bool |
---|
offsetExists(): defined by ArrayAccess interface.
Parameters: | mixed – |
---|---|
Return type: | bool |
offsetGet(): defined by ArrayAccess interface.
Parameters: | mixed – |
---|---|
Return type: | mixed |
offsetSet(): defined by ArrayAccess interface.
Parameters: |
|
---|---|
Return type: | void |
offsetUnset(): defined by ArrayAccess interface.
Parameters: | mixed – |
---|---|
Return type: | void |
Merge another Config with this one.
For duplicate keys, the following will be performed: - Nested Configs will be recursively merged. - Items in $merge with INTEGER keys will be appended. - Items in $merge with STRING keys will overwrite current values.
Parameters: | Config – |
---|---|
Return type: | Config |