MediaWiki
1.29.2
|
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... | |
Public Attributes | |
$mFormatVersion | |
Entry format version. More... | |
$mParams | |
Parameters for this entry. More... | |
$mRegex | |
Regular expression to match. More... | |
$mSource | |
Source of this entry. 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 | |
$mRaw | |
Raw line. More... | |
Represents a title blacklist entry.
Definition at line 333 of file TitleBlacklist.list.php.
|
private |
Construct a new TitleBlacklistEntry.
$regex | string Regular expression to match |
$params | array Parameters for this entry |
$raw | string Raw contents of this line |
Definition at line 348 of file TitleBlacklist.list.php.
References $params, $source, and TitleBlacklist::VERSION.
|
private |
Returns whether this entry is capable of filtering new accounts.
Definition at line 359 of file TitleBlacklist.list.php.
References global.
Referenced by matches().
TitleBlacklistEntry::getCustomMessage | ( | ) |
Definition at line 543 of file TitleBlacklist.list.php.
Referenced by getErrorMessage().
TitleBlacklistEntry::getErrorMessage | ( | $operation | ) |
Return the error message name for the blacklist entry.
$operation | string Operation name (as in titleblacklist-forbidden message name) |
Definition at line 566 of file TitleBlacklist.list.php.
References getCustomMessage().
TitleBlacklistEntry::getFormatVersion | ( | ) |
Definition at line 550 of file TitleBlacklist.list.php.
References $mFormatVersion.
TitleBlacklistEntry::getParams | ( | ) |
Definition at line 536 of file TitleBlacklist.list.php.
References $mParams.
TitleBlacklistEntry::getRaw | ( | ) |
Definition at line 529 of file TitleBlacklist.list.php.
References $mRaw.
TitleBlacklistEntry::getRegex | ( | ) |
Definition at line 522 of file TitleBlacklist.list.php.
References $mRegex.
TitleBlacklistEntry::matches | ( | $title, | |
$action | |||
) |
Check whether a user can perform the specified action on the specified Title.
Definition at line 386 of file TitleBlacklist.list.php.
References $cache, $title, filtersNewAccounts(), ObjectCache::getMainWANInstance(), list, use, wfDebugLog(), wfRestoreWarnings(), and wfSuppressWarnings().
|
static |
Create a new TitleBlacklistEntry from a line of text.
$line | String containing a line of blacklist text |
Definition at line 452 of file TitleBlacklist.list.php.
References $line, $matches, $opt, $options, $source, $wgParser, array(), as, global, list, CoreParserFunctions::ns(), and wfMessage().
Referenced by TitleBlacklist::parseBlacklist().
TitleBlacklistEntry::setFormatVersion | ( | $v | ) |
Set the format version.
$v | string New version to set |
Definition at line 557 of file TitleBlacklist.list.php.
TitleBlacklistEntry::$mFormatVersion |
Entry format version.
Definition at line 335 of file TitleBlacklist.list.php.
Referenced by getFormatVersion().
TitleBlacklistEntry::$mParams |
Parameters for this entry.
Definition at line 335 of file TitleBlacklist.list.php.
Referenced by getParams().
|
private |
TitleBlacklistEntry::$mRegex |
Regular expression to match.
Definition at line 335 of file TitleBlacklist.list.php.
Referenced by getRegex().
TitleBlacklistEntry::$mSource |
Source of this entry.
Definition at line 335 of file TitleBlacklist.list.php.