extends |
ArrayObject |
|---|
This is in almost every respect equivalent to an array except that it keeps track of which keys were accessed.
| Methods | ||
|---|---|---|
public
|
offsetGet(mixed $index): mixed
Retrieves a value, and logs the access.
|
# |
public
|
getAccessed(): array
Returns a lookup array of all array indexes that have been accessed.
Returns a lookup array of all array indexes that have been accessed. Returnsin form array($index => true). |
# |
public
|
resetAccessed()
Resets the access array.
Resets the access array. |
# |
| Properties | |||
|---|---|---|---|
protected
|
|
$accessed = []
|
# |