SS_Map_Iterator
class SS_Map_Iterator implements Iterator (View source)
Builds a map iterator around an Iterator. Called by SS_Map
Properties
protected | $items | |||
protected | $keyField | |||
protected | $titleField | |||
protected | $firstItemIdx | |||
protected | $endItemIdx | |||
protected | $firstItems | |||
protected | $lastItems | |||
protected | $excludedItems |
Methods
public
__construct(Iterator $items, string $keyField, string $titleField, $firstItems = null, array $lastItems = null)
No description
Details
__construct(Iterator $items, string $keyField, string $titleField, $firstItems = null, array $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.
bool
valid()
Checks if current position is valid.