Zend\Paginator\Adapter\Callback
Synopsis
class Callback
implements
AdapterInterface
{
- // members
- protected CallbackHandler $itemsCallback;
- protected CallbackHandler $countCallback;
- // methods
- public void __construct()
- public array getItems()
- public int count()
Hierarchy
Implements
Members
protected
- $countCallback
—
Zend\Stdlib\CallbackHandler
Callback to be executed to retrieve the total number of items. - $itemsCallback
—
Zend\Stdlib\CallbackHandler
Callback to be executed to retrieve the items for a page.
Methods
public
- __construct() — Constructs instance.
- count() — Returns the total number of items.
- getItems() — Returns an array of items for a page.