PHP Classes

Packages of Chris Pliakas

Recommend this page to a friend!
  All class groups  >  All authors  >  Packages of Chris Pliakas (2)  >  Mission progress status  >  Reputation  
Picture of Chris Pliakas
Name: Chris Pliakas <contact>
Classes: 2
Country: United States United States
Age: 43
All time rank: 1502227 in United States United States
Week rank: 195 Up19 in United States United States Up
All time users: 2014
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Object and Variable Registry  
Register variables for use in any scope
This class can be to register objects and variables accessible from any application scope.

It creates a registry to store and retrieve values of objects and variables that can be accessed using this class static function calls. That allows the use objects as singletons.

The class provides functions to add, remove, check the existence of object variables to the registry, as well clear all the entries previously stored in the registry.

  Files folder image Result Pager  
Split listings in multiple pages
This class can be use to generate navigation of listings split in multiple pages.

It takes as parameters the total number of items in the listing, the limit number of items to display per page and the number of the current page.

The class returns an array with the number of the first item and the range of items to show in the current page, the total number of pages, the need to present the next and previous links, and the LIMIT clause if the listing is to be retrieved from a MySQL database or similar.

The class also provides an iterator to return the navigation page offsets or HTML links to display in the current page. The template of the links is configurable.


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z