예제 #1
0
파일: model.php 프로젝트: vNative/vnative
 public static function count($query = [])
 {
     $model = new static();
     $query = $model->_updateQuery($query);
     return $model->_count($query);
 }
예제 #2
0
파일: model.php 프로젝트: HLitmus/WebApp
 /**
  * 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);
 }
예제 #3
0
파일: model.php 프로젝트: vjroby/library
 /**
  * @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);
 }