Core classCoredna\Kernel\Helper\Controller

Pagination

Helper for managing paging of records. Can be access with $_pagination

Coredna\Kernel\Helper\Controller\Pagination

Properties 11

Take no arguments.

# getFirstPage()
PaginationPage
Get the first page in this pagination
# getPreviousPage()
PaginationPage
Get the previous page. Will return the first page if the current page is the first page.
# getCurrentPage()
PaginationPage
Get the current page
# getNextPage()
PaginationPage
Get the next page. Will return the last page if the current page is the last page.
# getLastPage()
PaginationPage
Get the last page in this pagination
# getPages()
array
Get an array with the pages of this pagination
# getRecordCount()
int
Get the number of records
# getRecordsPerPage()
int
Get the number of records per page
# getPagesCount()
int
Get the number of pages
# getCurrentPageNumber()
int
Get the current page number. If the number of records is 0, this returns 0
# getCurrentOffset()
int
Get the current offset. If the number of records is 0, this returns 0