Interface PaginatedInterface
This interface describes the methods for paginated instance.
Namespace: Cake\Datasource\Paging
Method Summary
-
currentPage() public
Get current page number.
-
hasNextPage() public
Get whether there's a next page.
-
hasPrevPage() public
Get whether there's a previous page.
-
items() public
Get paginated items.
-
pageCount() public
Get total page count.
-
pagingParam() public
Get paging param.
-
pagingParams() public
Get all paging params.
-
perPage() public
Get items per page.
-
totalCount() public
Get Total items counts.
Method Detail
items() ¶ public
items(): Traversable<TKey, TValue>
Get paginated items.
Returns
Traversable<TKey, TValue>pagingParam() ¶ public
pagingParam(string $name): mixed
Get paging param.
Parameters
-
string$name
Returns
mixedpagingParams() ¶ public
pagingParams(): array<string, mixed>
Get all paging params.
Returns
array<string, mixed>