|
Plop
A simple logging library for PHP
|
Interface to provide accessing objects as arrays. More...
Inheritance diagram for ArrayAccess:Public Member Functions | |
| offsetExists ($offset) | |
| offsetGet ($offset) | |
| offsetSet ($offset, $value) | |
| offsetUnset ($offset) | |
Interface to provide accessing objects as arrays.
Definition at line 10 of file iface_ArrayAccess.php.
| ArrayAccess::offsetExists | ( | $offset | ) |
Whether or not an offset exists.
This method is executed when using isset() or empty() on objects implementing ArrayAccess.
| mixed | $offset | An offset to check for. |
| bool | TRUE is returned when the offset exists, FALSE when it doesn't. |
Implemented in Plop\Plop, Plop\Record, and Plop\Collection.
| ArrayAccess::offsetGet | ( | $offset | ) |
Returns the value at the specified offset.
This method is executed when checking if offset is empty().
| mixed | $offset | The offset to retrieve. |
| mixed | Value at the specified offset. |
Implemented in Plop\Plop, Plop\Record, and Plop\Collection.
| ArrayAccess::offsetSet | ( | $offset, | |
| $value | |||
| ) |
Assigns a value to the specified offset.
| mixed | $offset | The offset to assign the value to. |
| mixed | $value | The value to set. |
Implemented in Plop\Plop, Plop\Record, and Plop\Collection.
| ArrayAccess::offsetUnset | ( | $offset | ) |
Unsets an offset.
| mixed | $offset | The offset to unset. |
Implemented in Plop\Plop, Plop\Record, and Plop\Collection.