]> git.llucax.com Git - mecon/meconlib.git/blobdiff - lib/MECON/DB/Pager.php
Se acepta en addSubtitle() un MECON_HTML_Link para poner caminito.
[mecon/meconlib.git] / lib / MECON / DB / Pager.php
index bb030e7ec8d13256e7bd1149fc3067b0bd56e1b3..8aa5d603f5122c4e9d6c4a63e2c1570f6de0b887 100644 (file)
@@ -100,10 +100,10 @@ class MECON_DB_Pager extends DB_Result
     */
     function MECON_DB_Pager (&$res, $from = 0, $limit = 10, $maxpages = 21, $numrows = null)
     {
-        $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->dbh = $res->dbh;
+        $this->result = $res->result;
+        $this->row_counter = $res->row_counter;
+        $this->limit_from = $res->limit_from;
         $this->from = $from;
         $this->limit = $limit;
         $this->numrows = $numrows;
@@ -119,7 +119,7 @@ class MECON_DB_Pager extends DB_Result
     {
         // if there is no numrows given, calculate it
         if ($this->numrows === null) {
-            $this->numrows = $this->res->numrows();
+            $this->numrows = $this->numrows();
             if (DB::isError($this->numrows)) {
                 return $this->numrows;
             }
@@ -209,7 +209,7 @@ class MECON_DB_Pager extends DB_Result
         if ($this->current >= $this->to) {
             return null;
         }
-        return $this->res->fetchRow($mode, $this->current);
+        return parent::fetchRow($mode, $this->current);
     }
 
     function fetchInto(&$arr, $mode=DB_FETCHMODE_DEFAULT)
@@ -218,7 +218,7 @@ class MECON_DB_Pager extends DB_Result
         if ($this->current >= $this->to) {
             return null;
         }
-        return $this->res->fetchInto($arr, $mode, $this->current);
+        return parent::fetchInto($arr, $mode, $this->current);
     }
 }
 ?>