Set the banned mask value for a reason and return the new value.
public static setBanned ( integer $banned, boolean $value, integer $reason ) : integer | ||
$banned | integer | The current banned value. |
$value | boolean | The new ban value for the given reason. |
$reason | integer | The reason for the banning. This should be one of the `BanModel::BAN_*` constants. |
return | integer | Returns the new banned value. |