Esempio n. 1
0
 public function filter($filters = array(), $start = 0, $limit = 0)
 {
     if ($this->has && $limit) {
         $ids = $this->collect($this->id, $filters, $start, $limit);
         $filters = ModelStore::logic($filters, array(array($this->id, "in", $ids)));
         $limit = 0;
     }
     $records = parent::filter($filters, $start, $limit);
     if ($this->has) {
         $records = $this->_has($records);
     }
     return $records;
 }
Esempio n. 2
0
 public function construct()
 {
     $this->table = strtolower($_REQUEST['dataset']);
     parent::construct();
 }