MediaWiki  1.33.0
EmailBlacklist Class Reference

Email Blacklisting. More...

Inheritance diagram for EmailBlacklist:
Collaboration diagram for EmailBlacklist:

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...
 

Detailed Description

Email Blacklisting.

Definition at line 6 of file EmailBlacklist.php.

Member Function Documentation

◆ checkUser()

EmailBlacklist::checkUser ( User  $user)

Checks a User object for a blacklisted email address.

Parameters
User$user
Returns
bool True on valid email

Definition at line 32 of file EmailBlacklist.php.

References $user, as, captcha-old\count, BaseBlacklist\getBlacklists(), BaseBlacklist\getWhitelists(), and wfDebugLog().

◆ filter()

EmailBlacklist::filter ( array  $links,
Title  $title,
  $preventLog = false 
)
Parameters
array$links
Title$title
bool$preventLog
Returns
mixed

Reimplemented from BaseBlacklist.

Definition at line 13 of file EmailBlacklist.php.

◆ getBlacklistType()

EmailBlacklist::getBlacklistType ( )
protected

Returns the code for the blacklist implementation.

Returns
string

Reimplemented from BaseBlacklist.

Definition at line 22 of file EmailBlacklist.php.


The documentation for this class was generated from the following file: