PHP Classes

Karol's Pager: Generate links to navigate listings split in pages

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2005-06-17 (14 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 705 All time: 4,587 This week: 794Up
Version License Categories
karolspager 1.0GNU General Publi...HTML
Description Author

This is a simple package that can generate navigation HTML links to browse listings split between multiple pages.

The pager class takes the limit number of entries to list per page, the total number of entries in the whole listing and the first entry to list in the current page.

The navigation links are generated with the help of the URL class that generates the links URL from the parameters.

Name: Karol Krizka <contact>
Classes: 2 packages by
Country: Canada Canada
Age: ???
All time rank: 230054 in Canada Canada
Week rank: 714 Up5 in Canada Canada Up


A Pager Class by Karol Krizka
This is a simple pager to be used in webpages. A advantage of it is that it's simple so you can use it in any situation. It depends on Karol's URL Class that is included in this package but not documented.
All variables can be set/gotten by using the varname() class method. Replace varname by the variable you want to set.
from -> display items from
to -> display items to
incr -> number of items to display at a time
max -> max number of items that pager pages through, 0 means infinite
Class Methods
The following don't include the variable setter/getters.
Pager() - constructor
display() - displays the pager
  • Screenshot.png
  Files folder image Files  
File Role Description
Plain text file example.php Example Example
Plain text file pager.class.php Class The Pager Class
Plain text file README Doc. Documentation of this class
Plain text file url.class.php Class The URL Class (A dependency)

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,587
This week:794Up