Property | Description | Returns |
---|---|---|
firstPage | Get the first page in this pagination | PaginationPage |
previousPage | Get the previous page. Will return the first page if the current page is the first page. | PaginationPage |
currentPage | Get the current page | PaginationPage |
nextPage | Get the next page. Will return the last page if the current page is the last page. | PaginationPage |
lastPage | Get the last page in this pagination | PaginationPage |
pages | Get an array with the pages of this pagination | array |
recordCount | Get the number of records | int |
recordsPerPage | Get the number of records per page | int |
pagesCount | Get the number of pages | int |
currentPageNumber | Get the current page number. If the number of records is 0, this returns 0 | int |
currentOffset | Get the current offset. If the number of records is 0, this returns 0 | int |
Pagination (Api)
Helper for managing paging of records. Can be access with $_pagination