MediaWiki
1.29.2
|
Hooks for the TitleBlacklist class. More...
Static Public Member Functions | |
static | abortAutoAccount ( $user, &$message) |
AbortAutoAccount hook. More... | |
static | abortNewAccount ( $user, &$message, &$status) |
AbortNewAccount hook. More... | |
static | acceptNewUserName ( $userName, $permissionsUser, &$err, $override=true, $log=false) |
Check whether a user name is acceptable, and set a message if unacceptable. More... | |
static | addOverrideCheckbox (&$template) |
UserCreateForm hook based on the one from AntiSpoof extension. More... | |
static | clearBlacklist (&$article, &$user, $content, $summary, $isminor, $iswatch, $section) |
PageContentSaveComplete hook. More... | |
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. More... | |
static | logFilterHitUsername ( $user, $title, $entry) |
Logs the filter username hit to Special:Log if $wgTitleBlacklistLogHits is enabled. More... | |
static | onAddNewAccountApiForm (ApiBase $apiModule, LoginForm $loginForm) |
Pass API parameter on to the login form when using API account creation. More... | |
static | onAPIGetAllowedParams (ApiBase &$module, array &$params) |
static | onMovePageCheckPermissions (Title $oldTitle, Title $newTitle, User $user, $reason, Status $status) |
MovePageCheckPermissions hook (1.25+) More... | |
static | onRegistration () |
Called right after configuration variables have been set. More... | |
static | scribuntoExternalLibraries ( $engine, array &$extraLibraries) |
External Lua library for Scribunto. More... | |
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. More... | |
static | userCan ( $title, $user, $action, &$result) |
getUserPermissionsErrorsExpensive hook More... | |
static | validateBlacklist ( $editor, $text, $section, &$error) |
EditFilter hook. More... | |
Hooks for the TitleBlacklist class.
Definition at line 16 of file TitleBlacklist.hooks.php.
|
static |
AbortAutoAccount hook.
User | $user | |
string | &$message |
Definition at line 231 of file TitleBlacklist.hooks.php.
|
static |
AbortNewAccount hook.
Definition at line 213 of file TitleBlacklist.hooks.php.
References $status, $user, $wgRequest, $wgUser, global, true, and Status::wrap().
|
static |
Check whether a user name is acceptable, and set a message if unacceptable.
Used by abortNewAccount and centralAuthAutoCreate. May also be called externally to vet alternate account names.
Definition at line 156 of file TitleBlacklist.hooks.php.
References Status::wrap().
|
static |
UserCreateForm hook based on the one from AntiSpoof extension.
Definition at line 287 of file TitleBlacklist.hooks.php.
References $template, $wgRequest, $wgUser, global, and TitleBlacklist::userCanOverride().
|
static |
PageContentSaveComplete hook.
Article | $article |
Definition at line 276 of file TitleBlacklist.hooks.php.
References $article, $title, 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 | |
integer | $oldid | |
array | &$notices |
Definition at line 94 of file TitleBlacklist.hooks.php.
References $params, $title, RequestContext::getMain(), TitleBlacklist::singleton(), and wfMessage().
|
static |
|
static |
Pass API parameter on to the login form when using API account creation.
Definition at line 322 of file TitleBlacklist.hooks.php.
References $wgRequest, ApiBase::getMain(), and global.
ApiBase | $module | |
array | $params |
Definition at line 303 of file TitleBlacklist.hooks.php.
References $params, array(), ApiBase::PARAM_DFLT, and ApiBase::PARAM_TYPE.
|
static |
MovePageCheckPermissions hook (1.25+)
Definition at line 128 of file TitleBlacklist.hooks.php.
References $oldTitle, $status, $user, ApiMessage::create(), Title::getFullText(), and TitleBlacklist::singleton().
|
static |
Called right after configuration variables have been set.
Definition at line 21 of file TitleBlacklist.hooks.php.
References class, global, and Hooks::register().
|
static |
External Lua library for Scribunto.
string | $engine | |
array | $extraLibraries |
Definition at line 365 of file TitleBlacklist.hooks.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 174 of file TitleBlacklist.hooks.php.
References $params, $title, ApiMessage::create(), Title::makeTitleSafe(), StatusValue::newFatal(), StatusValue::newGood(), NS_USER, ApiResult::setIndexedTagName(), and TitleBlacklist::singleton().
Referenced by TitleBlacklistPreAuthenticationProvider::testForAccountCreation(), and TitleBlacklistPreAuthenticationProvider::testUserForCreation().
|
static |
getUserPermissionsErrorsExpensive hook
Definition at line 45 of file TitleBlacklist.hooks.php.
References $params, $title, $user, array(), ApiMessage::create(), ApiResult::setIndexedTagName(), TitleBlacklist::singleton(), and wfMessage().
|
static |
EditFilter hook.
$editor | EditPage |
Definition at line 244 of file TitleBlacklist.hooks.php.
References $editor, $title, $wgUser, array(), Html::closeElement(), captcha-old::count, Html::element(), global, NS_MEDIAWIKI, Html::openElement(), TitleBlacklist::singleton(), and wfMessage().