package Default

 Methods

Constructs instance.

__construct(\Zend\Stdlib\CallbackHandler|callable $itemsCallback, \Zend\Stdlib\CallbackHandler|callable $countCallback) 

Parameters

$itemsCallback

\Zend\Stdlib\CallbackHandlercallable

Callback to be executed to retrieve the items for a page.

$countCallback

\Zend\Stdlib\CallbackHandlercallable

Callback to be executed to retrieve the total number of items.

Returns the total number of items.

count() : integer

Executes the {$countCallback}.

Returns

integer

Returns an array of items for a page.

getItems(integer $offset, integer $itemCountPerPage) : array

Executes the {$itemsCallback}.

inherited_from \Zend\Paginator\Adapter\AdapterInterface::getItems()

Parameters

$offset

integer

Page offset

$itemCountPerPage

integer

Number of items per page

Returns

array

 Properties

 

Callback to be executed to retrieve the total number of items.

$countCallback : \Zend\Stdlib\CallbackHandler

Default

 

Callback to be executed to retrieve the items for a page.

$itemsCallback : \Zend\Stdlib\CallbackHandler

Default