Describe the solution you'd like
A paginator class, which takes a sub-set of data from a bigger pool (Collection, Query-Results, ...) and adds meta information like page, per_page, last_page.
Additional context
Example: A player searches a map in the map-list and sorts the result by author-name.
The search-term and sorting-options are send to the controller.
The controller queries the models
A paginator instance is created with the retrieved sub-set
The paginated data with meta information is send back to the player
Describe the solution you'd like A paginator class, which takes a sub-set of data from a bigger pool (Collection, Query-Results, ...) and adds meta information like
page
,per_page
,last_page
.Additional context Example: A player searches a map in the map-list and sorts the result by author-name.
The contents of the paginator could like this: