MediaWiki REL1_34
|
Hooks for Title Blacklist. More...
Static Public Member Functions | |
static | logFilterHitUsername ( $user, $title, $entry) |
Logs the filter username hit to Special:Log if $wgTitleBlacklistLogHits is enabled. | |
static | onClearBlacklist (WikiPage $wikiPage, &$user, $content, $summary, $isminor, $iswatch, $section) |
PageContentSaveComplete hook. | |
static | onDisplayBlacklistOverrideNotice (Title $title, $oldid, array &$notices) |
Display a notice if a user is only able to create or edit a page because they have tboverride. | |
static | onMovePageCheckPermissions (Title $oldTitle, Title $newTitle, User $user, $reason, Status $status) |
MovePageCheckPermissions hook (1.25+) | |
static | onScribuntoExternalLibraries ( $engine, array &$extraLibraries) |
External Lua library for Scribunto. | |
static | onUserCan ( $title, $user, $action, &$result) |
getUserPermissionsErrorsExpensive hook | |
static | onValidateBlacklist ( $editor, $text, $section, &$error) |
EditFilter hook. | |
static | testUserName ( $userName, User $creatingUser, $override=true, $log=false) |
Check whether a user name is acceptable for account creation or autocreation, and explain why not if that's the case. | |
Definition at line 14 of file TitleBlacklistHooks.php.
|
static |
Logs the filter username hit to Special:Log if $wgTitleBlacklistLogHits is enabled.
Definition at line 237 of file TitleBlacklistHooks.php.
References $title.
Referenced by testUserName().
|
static |
PageContentSaveComplete hook.
WikiPage | $wikiPage | |
User | &$user | |
Content | $content | |
string | $summary | |
bool | $isminor | |
bool | $iswatch | |
string | $section |
Definition at line 220 of file TitleBlacklistHooks.php.
References $title, WikiPage\getTitle(), NS_MEDIAWIKI, and TitleBlacklist\singleton().
|
static |
Display a notice if a user is only able to create or edit a page because they have tboverride.
Title | $title | |
int | $oldid | |
array | &$notices |
Definition at line 76 of file TitleBlacklistHooks.php.
References $title, getUser(), TitleBlacklist\singleton(), and wfMessage().
|
static |
MovePageCheckPermissions hook (1.25+)
Definition at line 110 of file TitleBlacklistHooks.php.
References ApiMessage\create(), StatusValue\fatal(), Title\getFullText(), and TitleBlacklist\singleton().
|
static |
External Lua library for Scribunto.
string | $engine | |
array | &$extraLibraries |
Definition at line 257 of file TitleBlacklistHooks.php.
|
static |
getUserPermissionsErrorsExpensive hook
Title | $title | |
User | $user | |
string | $action | |
array | IApiMessage | &$result |
Definition at line 26 of file TitleBlacklistHooks.php.
References $title, ApiMessage\create(), TitleBlacklist\singleton(), and wfMessage().
|
static |
EditFilter hook.
EditPage | $editor | |
string | $text | |
string | $section | |
string | &$error |
Definition at line 183 of file TitleBlacklistHooks.php.
References $title, NS_MEDIAWIKI, TitleBlacklist\parseBlacklist(), TitleBlacklist\singleton(), and wfMessage().
|
static |
Check whether a user name is acceptable for account creation or autocreation, and explain why not if that's the case.
string | $userName | |
User | $creatingUser | |
bool | $override | Should the test be skipped, if the user has sufficient privileges? |
bool | $log | Log blacklist hits to Special:Log |
Definition at line 142 of file TitleBlacklistHooks.php.
References $title, ApiMessage\create(), logFilterHitUsername(), NS_USER, and TitleBlacklist\singleton().
Referenced by TitleBlacklistPreAuthenticationProvider\testForAccountCreation(), and TitleBlacklistPreAuthenticationProvider\testUserForCreation().