* @see http://vulcanonet.com/soft/pager/
*/
-class MECON_DB_Pager extends PEAR
+class MECON_DB_Pager extends DB_Result
{
/**
*/
function MECON_DB_Pager (&$res, $from = 0, $limit = 10, $maxpages = 21, $numrows = null)
{
- $this->res = $res;
+ $this->res->dbh = $res->dbh;
+ $this->res->result = $res->result;
+ $this->res->row_counter = $res->row_counter;
+ $this->res->limit_from = $res->limit_from;
$this->from = $from;
$this->limit = $limit;
$this->numrows = $numrows;
$this->current = $this->from - 1;
}
- function fetchRow($mode=DB_FETCHMODE_DEFAULT)
+ function fetchRow($mode=DB_FETCHMODE_DEFAULT, $rownum=null)
{
$this->current++;
if ($this->current >= $this->to) {