Beispiel #1
0
 public function countAllUsers($condition)
 {
     $countCondition = array();
     if (null != @$condition['group_id']) {
         $countCondition['group_id'] = $condition['group_id'];
     }
     if (null != @$condition['username']) {
         $countCondition['username LIKE ?'] = "%{$condition['username']}%";
     }
     return parent::count($countCondition);
 }