Map_Iterator deprecated
class Map_Iterator implements Iterator (View source)
deprecated
Builds a map iterator around an Iterator. Called by Map
Properties
protected | Iterator | $items | ||
protected | $keyField | |||
protected | $titleField | |||
protected | $firstItemIdx | |||
protected | $endItemIdx | |||
protected | $firstItems | |||
protected | $lastItems | |||
protected | $excludedItems |
Methods
public
__construct(Iterator $items, string $keyField, string $titleField, array $firstItems = null, array $lastItems = null)
No description
protected
mixed
extractValue(array|object $item, string $key)
Extracts a value from an item in the list, where the item is either an object or array.
Details
__construct(Iterator $items, string $keyField, string $titleField, array $firstItems = null, array $lastItems = null)
No description
mixed
rewind()
Rewind the Iterator to the first element.
mixed
current()
Return the current element.
protected mixed
extractValue(array|object $item, string $key)
Extracts a value from an item in the list, where the item is either an object or array.
string
key()
Return the key of the current element.
mixed
next()
Move forward to next element.
bool
valid()
Checks if current position is valid.