MediaWiki REL1_30
|
Hooks for the TitleBlacklist class. More...
Static Public Member Functions | |
static | abortAutoAccount ( $user, &$message) |
AbortAutoAccount hook. | |
static | abortNewAccount ( $user, &$message, &$status) |
AbortNewAccount hook. | |
static | acceptNewUserName ( $userName, $permissionsUser, &$err, $override=true, $log=false) |
Check whether a user name is acceptable, and set a message if unacceptable. | |
static | addOverrideCheckbox (&$template) |
UserCreateForm hook based on the one from AntiSpoof extension. | |
static | clearBlacklist (&$article, &$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 | onAddNewAccountApiForm (ApiBase $apiModule, LoginForm $loginForm) |
Pass API parameter on to the login form when using API account creation. | |
static | onAPIGetAllowedParams (ApiBase &$module, array &$params) |
static | onMovePageCheckPermissions (Title $oldTitle, Title $newTitle, User $user, $reason, Status $status) |
MovePageCheckPermissions hook (1.25+) | |
static | onRegistration () |
Called right after configuration variables have been set. | |
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. | |
Hooks for the TitleBlacklist class.
Definition at line 16 of file TitleBlacklist.hooks.php.
|
static |
AbortAutoAccount hook.
User | $user | |
string | &$message |
Definition at line 245 of file TitleBlacklist.hooks.php.
References abortNewAccount().
|
static |
AbortNewAccount hook.
Definition at line 227 of file TitleBlacklist.hooks.php.
References $wgRequest, $wgUser, and testUserName().
Referenced by abortAutoAccount().
|
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.
string | $userName | |
User | $permissionsUser | |
string | &$err | |
bool | $override | |
bool | $log |
Definition at line 166 of file TitleBlacklist.hooks.php.
References testUserName().
|
static |
UserCreateForm hook based on the one from AntiSpoof extension.
UsercreateTemplate | &$template |
Definition at line 316 of file TitleBlacklist.hooks.php.
References $template, $wgRequest, $wgUser, and TitleBlacklist\userCanOverride().
|
static |
PageContentSaveComplete hook.
Article | &$article | |
User | &$user | |
Content | $content | |
string | $summary | |
bool | $isminor | |
bool | $iswatch | |
string | $section |
Definition at line 301 of file TitleBlacklist.hooks.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 97 of file TitleBlacklist.hooks.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 373 of file TitleBlacklist.hooks.php.
Referenced by testUserName().
|
static |
Pass API parameter on to the login form when using API account creation.
Definition at line 351 of file TitleBlacklist.hooks.php.
References $wgRequest.
|
static |
ApiBase | &$module | |
array | &$params |
Definition at line 332 of file TitleBlacklist.hooks.php.
References $params, false, ApiBase\PARAM_DFLT, and ApiBase\PARAM_TYPE.
|
static |
MovePageCheckPermissions hook (1.25+)
Definition at line 131 of file TitleBlacklist.hooks.php.
References $oldTitle, 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 $wgAuthManagerAutoConfig.
|
static |
External Lua library for Scribunto.
string | $engine | |
array | &$extraLibraries |
Definition at line 394 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 186 of file TitleBlacklist.hooks.php.
References $params, ApiMessage\create(), logFilterHitUsername(), ApiResult\setIndexedTagName(), and TitleBlacklist\singleton().
Referenced by abortNewAccount(), acceptNewUserName(), TitleBlacklistPreAuthenticationProvider\testForAccountCreation(), and TitleBlacklistPreAuthenticationProvider\testUserForCreation().
|
static |
getUserPermissionsErrorsExpensive hook
Definition at line 46 of file TitleBlacklist.hooks.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 262 of file TitleBlacklist.hooks.php.
References $editor, TitleBlacklist\singleton(), and wfMessage().