The singleton of the Mapper class you're paginating
QueryParams to use always
The total number of items
The total number of items
Calculates the current page number, based on the value of 'first.
Calculates the current page number, based on the value of 'first.'
The record number this page starts at.
The record number this page starts at. Zero-based.
How many items to put on each page
How many items to put on each page
The singleton of the Mapper class you're paginating
Calculates the number of pages the items will be spread across
Calculates the number of pages the items will be spread across
The items displayed on the current page
The items displayed on the current page
Returns a list of page numbers to be displayed in 'zoomed' mode, i.
Returns a list of page numbers to be displayed in 'zoomed' mode, i.e., as the page numbers get further from the current page, they are more sparse.
Paginate mapper instances by supplying the model you wish to paginate and Paginator will run your query for you etc.