Methods

Constructor.

__construct(\Iterator $iterator) 

Parameters

$iterator

\Iterator

Iterator to paginate

Exceptions

\Zend\Paginator\Adapter\Exception\InvalidArgumentException

Returns the total number of rows in the collection.

count() : int

Returns

int

Returns an iterator of items for a page, or an empty array.

getItems(int $offset, int $itemCountPerPage) : array | \Zend\Paginator\SerializableLimitIterator

Parameters

$offset

int

Page offset

$itemCountPerPage

int

Number of items per page

Returns

 Properties

 

Item count

$count : int

 

Iterator which implements Countable

$iterator : \Iterator