WIKINDX METHODS

Method:
links()

Class:
PAGING

Method Call:
include_once("core/paging/PAGING.php");
$paging = new PAGING($dbObject, $varsInput);
STRING $paging->links(STRING: $queryString);

Description:
Returns a formatted string containing hyperlinks for navigation through the paging system.

Usage:
	$sqlTotal = $this->db->select('WKX_resource', "title, type");
	include_once("core/paging/PAGING.php");
	$paging = new PAGING($this->db, $this->vars, $sqlTotal);
// How many resources to display is read from the session to pass to the SQL LIMIT clause.
	$sqlLimit = $sqlTotal . $paging->sqlLimit();
	print = $paging->linksInfo();
	$sth = $this->db->query($sqlLimit);
	while($row = $this->db->fetchAssoc($sth))
		print $row['title'] . " (" . $row['type'] . ")<br />";
	$queryString = "action=listResourcesDisplay";
	print $paging->links($queryString);
  

WIKINDX home      WIKINDX usage      WIKINDX classes