joelwan/php-object-generator — pull request #3 by Rafeethu (2012-01-05 10:50:13+00:00)
Title: this is a pager plugin. this plugin is inspired from propel orm's pager plugin.

how to use:

$nClient = new Client();
$pager = $nClient->pager(
array(
array(array('companyid','=',$nCompany->companyId)),
$page, <--- this is the page no eg 1, 2, 3...
5) <--- this the no of records per page
);

can access the records using:

foreach ($pager->getRecords() as $client){
echo($client->Name);
echo($client->Address);
}

the pager button can be access from :

getPrevLinks() as $link):?>

getCurrentPage()); ?>

getNextLinks() as $link):?>