class CollectionIterator extends ArrayIterator

Итератор коллекции

Methods

__construct(Collection $collection)

Конструктор итератора

current()

Return the current element

next()

Move forward to next element

boolean
valid()

Checks if current position is valid

integer
key()

Return the key of the current element

void
rewind()

Rewind the Iterator to the first element

Details

at line 43
__construct(Collection $collection)

Конструктор итератора

Parameters

Collection $collection Коллекция

at line 55
Model current()

Return the current element

Return Value

Model

Exceptions

Exception

at line 66
Model next()

Move forward to next element

Return Value

Model

at line 77
boolean valid()

Checks if current position is valid

Return Value

boolean

at line 90
integer key()

Return the key of the current element

Return Value

integer

at line 102
void rewind()

Rewind the Iterator to the first element

Return Value

void

Exceptions

Exception