class SS_Map_Iterator implements Iterator

Builds a map iterator around an Iterator. Called by SS_Map

Methods

__construct(Iterator $items, $keyField, $titleField, $firstItems = null, $lastItems = null)

No description

mixed
rewind()

Rewind the Iterator to the first element.

mixed
current()

Return the current element.

string
key()

Return the key of the current element.

mixed
next()

Move forward to next element.

boolean
valid()

Checks if current position is valid.

Details

at line 292
__construct(Iterator $items, $keyField, $titleField, $firstItems = null, $lastItems = null)

Parameters

Iterator $items
$keyField
$titleField
$firstItems
$lastItems

at line 319
mixed rewind()

Rewind the Iterator to the first element.

Return Value

mixed

at line 347
mixed current()

Return the current element.

Return Value

mixed

at line 366
string key()

Return the key of the current element.

Return Value

string

at line 381
mixed next()

Move forward to next element.

Return Value

mixed

at line 420
boolean valid()

Checks if current position is valid.

Return Value

boolean