Custom framework ArrayObject implementation.
More...
|
| __construct ($input=[], $flags=self::STD_PROP_LIST, $iteratorClass= 'ArrayIterator') |
| Constructor.
|
|
| __isset ($key) |
| Returns whether the requested key exists.
|
|
| __set ($key, $value) |
| Sets the value at the specified key to value.
|
|
| __unset ($key) |
| Unsets the value at the specified key.
|
|
& | __get ($key) |
| Returns the value at the specified key by reference.
|
|
| append ($value) |
| Appends the value.
|
|
| asort () |
| Sort the entries by value.
|
|
| count () |
| Get the number of public properties in the ArrayObject.
|
|
| exchangeArray ($data) |
| Exchange the array for another one.
|
|
| getArrayCopy () |
| Creates a copy of the ArrayObject.
|
|
| getFlags () |
| Gets the behavior flags.
|
|
| getIterator () |
| Create a new iterator from an ArrayObject instance.
|
|
| getIteratorClass () |
| Gets the iterator classname for the ArrayObject.
|
|
| ksort () |
| Sort the entries by key.
|
|
| natcasesort () |
| Sort an array using a case insensitive "natural order" algorithm.
|
|
| natsort () |
| Sort entries using a "natural order" algorithm.
|
|
| offsetExists ($key) |
| Returns whether the requested key exists.
|
|
& | offsetGet ($key) |
| Returns the value at the specified key.
|
|
| offsetSet ($key, $value) |
| Sets the value at the specified key to value.
|
|
| offsetUnset ($key) |
| Unsets the value at the specified key.
|
|
| serialize () |
| Serialize an ArrayObject.
|
|
| setFlags ($flags) |
| Sets the behavior flags.
|
|
| setIteratorClass ($class) |
| Sets the iterator classname for the ArrayObject.
|
|
| uasort ($function) |
| Sort the entries with a user-defined comparison function and maintain key association.
|
|
| uksort ($function) |
| Sort the entries by keys using a user-defined comparison function.
|
|
| unserialize ($data) |
| Unserialize an ArrayObject.
|
|
|
const | STD_PROP_LIST = 1 |
| Properties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.).
|
|
const | ARRAY_AS_PROPS = 2 |
| Entries can be accessed as properties (read and write).
|
|
Custom framework ArrayObject implementation.
Extends version-specific "abstract" implementation.
__construct |
( |
|
$input = [] , |
|
|
|
$flags = self::STD_PROP_LIST , |
|
|
|
$iteratorClass = 'ArrayIterator' |
|
) |
| |
Constructor.
- Parameters
-
array | $input | |
int | $flags | |
string | $iteratorClass | |
Returns the value at the specified key by reference.
- Parameters
-
- Returns
- mixed
Returns whether the requested key exists.
- Parameters
-
- Returns
- bool
Sets the value at the specified key to value.
- Parameters
-
- Returns
- void
Unsets the value at the specified key.
- Parameters
-
- Returns
- void
Appends the value.
- Parameters
-
- Returns
- void
Sort the entries by value.
- Returns
- void
Get the number of public properties in the ArrayObject.
- Returns
- int
Exchange the array for another one.
- Parameters
-
- Returns
- array
Gets the behavior flags.
- Returns
- int
Create a new iterator from an ArrayObject instance.
- Returns
Gets the iterator classname for the ArrayObject.
- Returns
- string
Sort the entries by key.
- Returns
- void
Sort an array using a case insensitive "natural order" algorithm.
- Returns
- void
Sort entries using a "natural order" algorithm.
- Returns
- void
Returns whether the requested key exists.
- Parameters
-
- Returns
- bool
Returns the value at the specified key.
- Parameters
-
- Returns
- mixed
offsetSet |
( |
|
$key, |
|
|
|
$value |
|
) |
| |
Sets the value at the specified key to value.
- Parameters
-
- Returns
- void
Unsets the value at the specified key.
- Parameters
-
- Returns
- void
Sets the behavior flags.
- Parameters
-
- Returns
- void
setIteratorClass |
( |
|
$class | ) |
|
Sets the iterator classname for the ArrayObject.
- Parameters
-
- Returns
- void
Sort the entries with a user-defined comparison function and maintain key association.
- Parameters
-
- Returns
- void
Sort the entries by keys using a user-defined comparison function.
- Parameters
-
- Returns
- void
Entries can be accessed as properties (read and write).
Properties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.).