Exemple #1
0
 /**
  * Function to get a total records count
  *
  * @return int
  */
 protected function count()
 {
     $res = $this->db->ArrayBuilder()->getValue($this->dbTable, "count(*)");
     if (!$res) {
         return 0;
     }
     return $res;
 }
 /**
  * Function to get a total records count
  *
  * @return int
  */
 private function count()
 {
     $res = $this->db->ArrayBuilder()->getValue($this->dbTable, "count(*)");
     return $res['cnt'];
 }