Class allowing for the continuous iteration of a Zend\Paginator\Paginator instance.

Useful for representing remote paginated data sources as a single Iterator

 Methods

__construct()

__construct(\Zend\Paginator\Paginator $paginator) 

Parameters

$paginator

Return the current element

current() : mixed

link http://php.net/manual/en/iterator.current.php

Returns

mixedCan return any type.

Returns the inner iterator for the current entry.

getInnerIterator() : \Iterator

link http://php.net/manual/en/outeriterator.getinneriterator.php

Returns

\IteratorThe inner iterator for the current entry.

Return the key of the current element

key() : mixed

link http://php.net/manual/en/iterator.key.php

Returns

mixedscalar on success, or null on failure.

Rewind the Iterator to the first element

rewind() : void

Checks if current position is valid

valid() : boolean

link http://php.net/manual/en/iterator.valid.php

Returns

booleanThe return value will be casted to boolean and then evaluated. Returns true on success or false on failure.

 Properties

 

Internal Paginator for iteration

$paginator : \Zend\Paginator\Paginator

 

Value for valid method

$valid : bool