Exemplo n.º 1
0
 public static function count($query = [])
 {
     $model = new static();
     $query = $model->_updateQuery($query);
     return $model->_count($query);
 }
Exemplo n.º 2
0
 /**
  * Simple, static wrapper method to a protected instance method _count
  * @param type $where
  * @return type
  */
 public static function count($where = array())
 {
     $model = new static();
     return $model->_count($where);
 }
Exemplo n.º 3
0
 /**
  * @param array $where
  * @param $group
  * @return mixed
  */
 public static function count($where = array(), $group = null, $joins = null)
 {
     $model = new static();
     return $model->_count($where, $group, $joins);
 }