This class is meant for generation of parameters for navigation between pages that display ranges of data records (e.g. database results).
You just need to pass to the class an array with the rows of data that you want to display, the number of the current page, eventually taken from the page request parameters, and the limit number of rows that you want to display per page.
Then you can use the class to retrieve the data of each row of data that you will display in the current page, as well parameters to generate links to navigate between the diferent pages of the listing of the data. |