MediaWiki
1.34.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) | |
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 19 of file TitleBlacklistEntry.php.
|
private |
string | $regex | Regular expression to match |
array | $params | Parameters for this entry |
string | $raw | Raw contents of this line |
string | $source |
Definition at line 56 of file TitleBlacklistEntry.php.
References $source, and TitleBlacklist\VERSION.
|
private |
Returns whether this entry is capable of filtering new accounts.
Definition at line 67 of file TitleBlacklistEntry.php.
Referenced by matches().
TitleBlacklistEntry::getCustomMessage | ( | ) |
Definition at line 260 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 287 of file TitleBlacklistEntry.php.
References getCustomMessage().
TitleBlacklistEntry::getFormatVersion | ( | ) |
Definition at line 267 of file TitleBlacklistEntry.php.
References $mFormatVersion.
TitleBlacklistEntry::getParams | ( | ) |
Definition at line 253 of file TitleBlacklistEntry.php.
References $mParams.
TitleBlacklistEntry::getRaw | ( | ) |
Definition at line 246 of file TitleBlacklistEntry.php.
References $mRaw.
TitleBlacklistEntry::getRegex | ( | ) |
Definition at line 239 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 94 of file TitleBlacklistEntry.php.
References $cache, $title, filtersNewAccounts(), 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 162 of file TitleBlacklistEntry.php.
References $line, $matches, $source, $wgParser, CoreParserFunctions\ns(), and wfMessage().
Referenced by TitleBlacklist\parseBlacklist().
TitleBlacklistEntry::setFormatVersion | ( | $v | ) |
Set the format version.
string | $v | New version to set |
Definition at line 276 of file TitleBlacklistEntry.php.
|
private |
Entry format version.
Definition at line 42 of file TitleBlacklistEntry.php.
Referenced by getFormatVersion().
|
private |
Parameters for this entry.
Definition at line 36 of file TitleBlacklistEntry.php.
Referenced by getParams().
|
private |
|
private |
Regular expression to match.
Definition at line 30 of file TitleBlacklistEntry.php.
Referenced by getRegex().
|
private |
Source of this entry.
Definition at line 48 of file TitleBlacklistEntry.php.