public getCountWhere ( array | false $Where = false ) : integer | ||
$Where | array | false | |
Résultat | integer |
public function getCountWhere($Where = false)
{
$this->SQL->select('u.UserID', 'count', 'UserCount')->from('User u');
if (is_array($Where)) {
$this->SQL->where($Where);
}
$Data = $this->SQL->where('u.Deleted', 0)->get()->firstRow();
return $Data === false ? 0 : $Data->UserCount;
}