MediaWiki REL1_31
|
Hooks for Title Blacklist. More...
Static Public Member Functions | |
static | clearBlacklist (WikiPage &$wikiPage, &$user, $content, $summary, $isminor, $iswatch, $section) |
PageContentSaveComplete hook. | |
static | displayBlacklistOverrideNotice (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 | logFilterHitUsername ( $user, $title, $entry) |
Logs the filter username hit to Special:Log if $wgTitleBlacklistLogHits is enabled. | |
static | onMovePageCheckPermissions (Title $oldTitle, Title $newTitle, User $user, $reason, Status $status) |
MovePageCheckPermissions hook (1.25+) | |
static | scribuntoExternalLibraries ( $engine, array &$extraLibraries) |
External Lua library for Scribunto. | |
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. | |
static | userCan ( $title, $user, $action, &$result) |
getUserPermissionsErrorsExpensive hook | |
static | validateBlacklist ( $editor, $text, $section, &$error) |
EditFilter hook. | |
Definition at line 14 of file TitleBlacklistHooks.php.
|
static |
PageContentSaveComplete hook.
WikiPage | &$wikiPage | |
User | &$user | |
Content | $content | |
string | $summary | |
bool | $isminor | |
bool | $iswatch | |
string | $section |
Definition at line 223 of file TitleBlacklistHooks.php.
References 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 $params, RequestContext\getMain(), TitleBlacklist\singleton(), and wfMessage().
|
static |
Logs the filter username hit to Special:Log if $wgTitleBlacklistLogHits is enabled.
Definition at line 242 of file TitleBlacklistHooks.php.
Referenced by testUserName().
|
static |
MovePageCheckPermissions hook (1.25+)
Definition at line 110 of file TitleBlacklistHooks.php.
References $oldTitle, ApiMessage\create(), Title\getFullText(), and TitleBlacklist\singleton().
|
static |
External Lua library for Scribunto.
string | $engine | |
array | &$extraLibraries |
Definition at line 263 of file TitleBlacklistHooks.php.
References $engine.
|
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 141 of file TitleBlacklistHooks.php.
References $params, ApiMessage\create(), logFilterHitUsername(), ApiResult\setIndexedTagName(), and TitleBlacklist\singleton().
Referenced by TitleBlacklistPreAuthenticationProvider\testForAccountCreation(), and TitleBlacklistPreAuthenticationProvider\testUserForCreation().
|
static |
getUserPermissionsErrorsExpensive hook
Definition at line 25 of file TitleBlacklistHooks.php.
References $params, ApiMessage\create(), ApiResult\setIndexedTagName(), TitleBlacklist\singleton(), and wfMessage().
|
static |
EditFilter hook.
EditPage | $editor | |
string | $text | |
string | $section | |
string | &$error |
Definition at line 183 of file TitleBlacklistHooks.php.
References $editor, TitleBlacklist\singleton(), and wfMessage().