MediaWiki
1.33.0
|
Email Blacklisting. More...
Public Member Functions | |
checkUser (User $user) | |
Checks a User object for a blacklisted email address. More... | |
filter (array $links, Title $title, $preventLog=false) | |
Public Member Functions inherited from BaseBlacklist | |
__construct ( $settings=[]) | |
Constructor. More... | |
clearCache () | |
Clear all primary blacklist cache keys. More... | |
getBlacklists () | |
Fetch local and (possibly cached) remote blacklists. More... | |
getLocalBlacklists () | |
Returns the local blacklist. More... | |
getRegexEnd ( $batchSize) | |
Returns the end of the regex for matches. More... | |
getRegexStart () | |
Returns the start of the regex for matches. More... | |
getWhitelists () | |
Returns the (local) whitelist. More... | |
warmCachesForFilter (Title $title, array $entries) | |
Protected Member Functions | |
getBlacklistType () | |
Returns the code for the blacklist implementation. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from BaseBlacklist | |
static | addBlacklistType ( $type, $class) |
Adds a blacklist class to the registry. More... | |
static | getBlacklistTypes () |
Return the array of blacklist types currently defined. More... | |
static | getEmailBlacklist () |
static | getInstance ( $type) |
Returns an instance of the given blacklist. More... | |
static | getSpamBlacklist () |
static | getTypeFromTitle (Title $title) |
Returns the type of blacklist from the given title. More... | |
static | isLocalSource (Title $title) |
Check if the given local page title is a spam regex source. More... | |
Public Attributes inherited from BaseBlacklist | |
int | $expiryTime = 900 |
array | $files = [] |
Array of blacklist sources. More... | |
int | $warningChance = 100 |
Chance of receiving a warning when the filter is hit. More... | |
int | $warningTime = 600 |
Protected Attributes inherited from BaseBlacklist | |
bool array | $regexes = false |
Array containing regexes to test against. More... | |
Email Blacklisting.
Definition at line 6 of file EmailBlacklist.php.
EmailBlacklist::checkUser | ( | User | $user | ) |
Checks a User object for a blacklisted email address.
User | $user |
Definition at line 32 of file EmailBlacklist.php.
References $user, as, captcha-old\count, BaseBlacklist\getBlacklists(), BaseBlacklist\getWhitelists(), and wfDebugLog().
array | $links | |
Title | $title | |
bool | $preventLog |
Reimplemented from BaseBlacklist.
Definition at line 13 of file EmailBlacklist.php.
|
protected |
Returns the code for the blacklist implementation.
Reimplemented from BaseBlacklist.
Definition at line 22 of file EmailBlacklist.php.