Class Callback

Summary

Fully Qualified Name: Zend\Paginator\Adapter\Callback
Implements: AdapterInterface

Description

Methods

Name Description Defined By
__construct() Constructs instance. Callback
count() Returns the total number of items. Callback
getItems() Returns an array of items for a page. Callback

Method Details

__construct()

Constructs instance.

Parameter Name Type Description
$itemsCallback callable Callback
$countCallback callable Callback

Returns:

count()

Returns the total number of items.

Executes the {$countCallback}.

Returns: int

getItems()

Returns an array of items for a page.

Executes the {$itemsCallback}.

Parameter Name Type Description
$offset int Page
$itemCountPerPage int Number

Returns: array

Top