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    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 709 This week: 1All time: 4,643 This week: 560Up
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.

Picture of Karol Krizka
Name: Karol Krizka <contact>
Classes: 2 packages by
Country: Canada Canada
Age: ???
All time rank: 234153 in Canada Canada
Week rank: 411 Up10 in Canada Canada Up

Details

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. ============================== Variables ------------------------------ 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

Screenshots  
  • 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  
 0%
Total:709
This week:1
All time:4,643
This week:560Up