示例#1
0
 public function count()
 {
     if (is_numeric($this->rowset[0])) {
         $check_count = clone $this->target_model;
         $check_count->select_columns = array($check_count->primary_key);
         $check_count->filter($check_count->primary_key, $this->rowset);
         return $check_count->all()->count();
     } else {
         return parent::count();
     }
 }
示例#2
0
 public function count()
 {
     $this->load();
     return parent::count();
 }