Esempio n. 1
0
File: db.php Progetto: hazardland/db
 public function limit($table, $count = null)
 {
     if (is_object($table)) {
         if (is_object($this->pager)) {
             $this->limit =& $this->pager;
         }
         if (is_object($this->limit)) {
             return $this->limit->result($table);
         }
         return $this->limit;
     }
     if ($count === null) {
         $this->limit->count($table);
     } else {
         $this->limit->from($table);
         $this->limit->count($count);
     }
 }