Elgg  Version 2.3
Public Member Functions | Static Public Member Functions | List of all members
Elgg\Structs\Collection\InMemory Class Reference

Uses native PHP array to implement the Collection interface. More...

Inheritance diagram for Elgg\Structs\Collection\InMemory:
Elgg\Structs\Collection

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...
 

Detailed Description

Uses native PHP array to implement the Collection interface.

Since
1.10

private

Definition at line 13 of file InMemory.php.

Member Function Documentation

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 Elgg\Structs\Collection\InMemory::fromArray ( array  $items)
static

Factory function for converting from an array to a ton of items.

Parameters
array$itemsThe list of objects to include. Generics come later.
Returns
self

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.


The documentation for this class was generated from the following file: