public static function count($query = []) { $model = new static(); $query = $model->_updateQuery($query); return $model->_count($query); }
/** * 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); }
/** * @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); }