|
Elgg
Version 2.3
|
Uses native PHP array to implement the Collection interface. More...
Public Member Functions | |
| contains ($item) | |
| @inheritDoc More... | |
| count () | |
| @inheritDoc More... | |
| current () | |
| @inheritDoc More... | |
| filter (callable $filter) | |
| @inheritDoc More... | |
| key () | |
| @inheritDoc More... | |
| map (callable $mapper) | |
| @inheritDoc More... | |
| next () | |
| @inheritDoc More... | |
| rewind () | |
| @inheritDoc More... | |
| valid () | |
| @inheritDoc More... | |
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.
@access private
Definition at line 13 of file InMemory.php.
| Elgg\Structs\Collection\InMemory::contains | ( | $item | ) |
| Elgg\Structs\Collection\InMemory::count | ( | ) |
@inheritDoc
Definition at line 32 of file InMemory.php.
| Elgg\Structs\Collection\InMemory::current | ( | ) |
@inheritDoc
Definition at line 37 of file InMemory.php.
| Elgg\Structs\Collection\InMemory::filter | ( | callable | $filter | ) |
|
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 | ( | ) |
@inheritDoc
Definition at line 55 of file InMemory.php.
| Elgg\Structs\Collection\InMemory::map | ( | callable | $mapper | ) |
| Elgg\Structs\Collection\InMemory::next | ( | ) |
@inheritDoc
Definition at line 69 of file InMemory.php.
| Elgg\Structs\Collection\InMemory::rewind | ( | ) |
@inheritDoc
Definition at line 74 of file InMemory.php.
| Elgg\Structs\Collection\InMemory::valid | ( | ) |
@inheritDoc
Definition at line 79 of file InMemory.php.