This class can be used to generate a list of pages to splitting listings of many entries in multiple pages
It takes as parameter the total number of listing pages and the current page number.
The class initializes an array variable that define the numbers of pages to show in a navigation bar specifying whether each page is the current page or should be displayed as a link to first, last or another page.