MediaWiki
1.33.0
|
Represents a title blacklist entry. More...
Public Member Functions | |
getCustomMessage () | |
getErrorMessage ( $operation) | |
Return the error message name for the blacklist entry. More... | |
getFormatVersion () | |
getParams () | |
getRaw () | |
getRegex () | |
matches ( $title, $action) | |
Check whether a user can perform the specified action on the specified Title. More... | |
setFormatVersion ( $v) | |
Set the format version. More... | |
Static Public Member Functions | |
static | newFromString ( $line, $source) |
Create a new TitleBlacklistEntry from a line of text. More... | |
Private Member Functions | |
__construct ( $regex, $params, $raw, $source) | |
Construct a new TitleBlacklistEntry. More... | |
filtersNewAccounts () | |
Returns whether this entry is capable of filtering new accounts. More... | |
Private Attributes | |
string | $mFormatVersion |
Entry format version. More... | |
array | $mParams |
Parameters for this entry. More... | |
string | $mRaw |
Raw line. More... | |
string | $mRegex |
Regular expression to match. More... | |
string | $mSource |
Source of this entry. More... | |
Represents a title blacklist entry.
Definition at line 17 of file TitleBlacklistEntry.php.
|
private |
Construct a new TitleBlacklistEntry.
string | $regex | Regular expression to match |
array | $params | Parameters for this entry |
string | $raw | Raw contents of this line |
Definition at line 55 of file TitleBlacklistEntry.php.
References $params, $source, and TitleBlacklist\VERSION.
|
private |
Returns whether this entry is capable of filtering new accounts.
Definition at line 66 of file TitleBlacklistEntry.php.
Referenced by matches().
TitleBlacklistEntry::getCustomMessage | ( | ) |
Definition at line 259 of file TitleBlacklistEntry.php.
Referenced by getErrorMessage().
TitleBlacklistEntry::getErrorMessage | ( | $operation | ) |
Return the error message name for the blacklist entry.
string | $operation | Operation name (as in titleblacklist-forbidden message name) |
Definition at line 286 of file TitleBlacklistEntry.php.
References getCustomMessage().
TitleBlacklistEntry::getFormatVersion | ( | ) |
Definition at line 266 of file TitleBlacklistEntry.php.
References $mFormatVersion.
TitleBlacklistEntry::getParams | ( | ) |
Definition at line 252 of file TitleBlacklistEntry.php.
References $mParams.
TitleBlacklistEntry::getRaw | ( | ) |
Definition at line 245 of file TitleBlacklistEntry.php.
References $mRaw.
TitleBlacklistEntry::getRegex | ( | ) |
Definition at line 238 of file TitleBlacklistEntry.php.
References $mRegex.
TitleBlacklistEntry::matches | ( | $title, | |
$action | |||
) |
Check whether a user can perform the specified action on the specified Title.
Definition at line 93 of file TitleBlacklistEntry.php.
References $cache, $title, filtersNewAccounts(), ObjectCache\getMainWANInstance(), list, use, and wfDebugLog().
|
static |
Create a new TitleBlacklistEntry from a line of text.
string | $line | String containing a line of blacklist text |
string | $source |
Definition at line 161 of file TitleBlacklistEntry.php.
References $line, $matches, $opt, $options, $source, $wgParser, as, CoreParserFunctions\ns(), and wfMessage().
Referenced by TitleBlacklist\parseBlacklist().
TitleBlacklistEntry::setFormatVersion | ( | $v | ) |
Set the format version.
string | $v | New version to set |
Definition at line 275 of file TitleBlacklistEntry.php.
|
private |
Entry format version.
Definition at line 40 of file TitleBlacklistEntry.php.
Referenced by getFormatVersion().
|
private |
Parameters for this entry.
Definition at line 34 of file TitleBlacklistEntry.php.
Referenced by getParams().
|
private |
|
private |
Regular expression to match.
Definition at line 28 of file TitleBlacklistEntry.php.
Referenced by getRegex().
|
private |
Source of this entry.
Definition at line 46 of file TitleBlacklistEntry.php.