Fully Qualified Name: | Laminas\Paginator\Adapter\Callback |
Implements: | AdapterInterface |
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 |
Constructs instance.
Parameter Name | Type | Description |
---|---|---|
$itemsCallback | callable | Callback |
$countCallback | callable | Callback |
Returns:
Returns the total number of items.
Executes the {$countCallback}.
Returns: int
Returns an array of items for a page.
Executes the {$itemsCallback}.
Parameter Name | Type | Description |
---|---|---|
$offset | int | Page |
$itemCountPerPage | int | Number |
Returns: array