Elgg
Version 2.3
|
Uses native PHP array to implement the Collection interface. More...
Public Member Functions | |
contains ($item) | |
count () | |
current () | |
filter (callable $filter) | |
key () | |
map (callable $mapper) | |
next () | |
rewind () | |
valid () | |
Static Public Member Functions | |
static | fromArray (array $items) |
Factory function for converting from an array to a ton of items. More... | |
Uses native PHP array to implement the Collection interface.
private
Definition at line 13 of file InMemory.php.
Elgg\Structs\Collection\InMemory::contains | ( | $item | ) |
Implements Elgg\Structs\Collection.
Definition at line 27 of file InMemory.php.
Elgg\Structs\Collection\InMemory::count | ( | ) |
Definition at line 32 of file InMemory.php.
Elgg\Structs\Collection\InMemory::current | ( | ) |
Definition at line 37 of file InMemory.php.
Elgg\Structs\Collection\InMemory::filter | ( | callable | $filter | ) |
Implements Elgg\Structs\Collection.
Definition at line 42 of file InMemory.php.
|
static |
Factory function for converting from an array to a ton of items.
array | $items | The list of objects to include. Generics come later. |
Definition at line 90 of file InMemory.php.
Elgg\Structs\Collection\InMemory::key | ( | ) |
Definition at line 55 of file InMemory.php.
Elgg\Structs\Collection\InMemory::map | ( | callable | $mapper | ) |
Implements Elgg\Structs\Collection.
Definition at line 60 of file InMemory.php.
Elgg\Structs\Collection\InMemory::next | ( | ) |
Definition at line 69 of file InMemory.php.
Elgg\Structs\Collection\InMemory::rewind | ( | ) |
Definition at line 74 of file InMemory.php.
Elgg\Structs\Collection\InMemory::valid | ( | ) |
Definition at line 79 of file InMemory.php.