コード例 #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);
 }