Check whether or not a banned value is banned for a given reason.
public static isBanned ( integer $banned, integer $reason ) : boolean | ||
$banned | integer | The banned value. |
$reason | integer | The reason for the banning or an empty string to check if banned for any reason. This should be one of the `BanModel::BAN_*` constants. |
Résultat | boolean | Returns true if the value is banned or false otherwise. |