category Zend
package Zend_Paginator

 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() : integer

Returns

integer

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

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

Parameters

$offset

integer

Page offset

$itemCountPerPage

integer

Number of items per page

Returns

 Properties

 

Item count

$count : integer

 

Iterator which implements Countable

$iterator : \Zend\Paginator\Adapter\Iterator