Method |
Description |
|
_BeforeGet ( ) |
Add ban data to all Get requests. |
|
__construct ( ) |
Defines the related database table name. |
|
allBans ( ) |
Get and store list of current bans. |
|
applyBan ( array $NewBan = null, array $OldBan = null ) |
Convert bans to new type. |
|
banWhere ( array $Ban ) : array |
Ban users that meet conditions given. |
|
checkUser ( $User, Gdn_Validation $Validation = null, boolean $UpdateBlocks = false, &$BansFound = null ) : boolean |
Add ban data to all Get requests. |
|
delete ( array | integer $where = [], array | true $options = [] ) : boolean |
Remove a ban. |
|
explodeBans ( integer $banned ) : array |
Explode a banned bit mask into an array of ban constants. |
|
instance ( ) : BanModel |
Get the singleton instance of the {@link BanModel} class. |
|
isBanned ( integer $banned, integer $reason ) : boolean |
Check whether or not a banned value is banned for a given reason. |
|
save ( array $FormPostValues, array $Settings = false ) |
Save data about ban from form. |
|
saveUser ( array $User, boolean $BannedValue, array | false $Ban = false ) |
Change ban data on a user (ban or unban them). |
|
setBanned ( integer $banned, boolean $value, integer $reason ) : integer |
Set the banned mask value for a reason and return the new value. |
|
setCounts ( array &$Data ) |
Set number of banned users in $Data. |
|