WIKINDX CLASSES

PAGING

Class Call:
include_once("core/paging/PAGING.php");
new PAGING(DATABASE OBJECT: $db, ASSOC_ARRAY: $vars, SQL_SELECT_STMT: $sqlTotalString);

Description:
$db is the database object created in index.php and $vars is an associative array of user input also obtained in index.php.

$sqlTotalString is a SQL SELECT string defining the total number of resources in the paging system before it is broken down to smaller pages.

The constructor of this class reads default/user preferences for paging from the session. Additionally, the constructor will set the session variable links_allIds which is used when showing a single resource to display previous and next hyperlinks.

Used, for example, when displaying long lists of resources to break them up into several web pages. PAGING provides hyperlinks on each of those pages to navigate backwards and forwards through the list.

This class and its appropriate methods are called from the LISTCOMMON::listResources() method so there is usually no need for the developer to call it explicitly.

Methods:
links()
linksInfo()
sqlLimit()

WIKINDX home      WIKINDX usage      WIKINDX classes