MediaWiki
1.34.0
|
Static Public Member Functions | |
static | confirmEditMerged ( $context, $content, $status, $summary, $user, $minorEdit) |
static | confirmEditPage (EditPage $editpage) |
static | confirmEditSetup () |
static | confirmEmailUser ( $from, $to, $subject, $text, &$error) |
static | getInstance () |
Get the global Captcha instance. More... | |
static | injectEmailUser (&$form) |
static | onAlternateEditPreview (EditPage $editor, &$content, &$html, &$po) |
AlternateEditPreview hook handler. More... | |
static | onAPIGetAllowedParams (&$module, &$params, $flags=1) |
APIGetAllowedParams hook handler Default $flags to 1 for backwards-compatible behavior. More... | |
static | onAuthChangeFormFields (array $requests, array $fieldInfo, array &$formDescriptor, $action) |
static | onFancyCaptchaSetup () |
Callback for extension.json of FancyCaptcha to set a default captcha directory, which depends on wgUploadDirectory. More... | |
static | onPageContentSaveComplete (WikiPage $wikiPage, User $user, Content $content, $summary, $isMinor, $isWatch, $section, $flags, $revision, Status $status, $baseRevId) |
PageContentSaveComplete hook handler. More... | |
static | onTitleReadWhitelist (Title $title, User $user, &$whitelisted) |
TitleReadWhitelist hook handler. More... | |
static | showEditFormFields ( $editPage, &$out) |
Static Protected Attributes | |
static | $instanceCreated = false |
Definition at line 5 of file ConfirmEditHooks.php.
|
static |
RequestContext | $context | |
Content | $content | |
Status | $status | |
string | $summary | |
User | $user | |
bool | $minorEdit |
Definition at line 37 of file ConfirmEditHooks.php.
References $content, $context, $status, and getInstance().
|
static |
EditPage | $editpage |
Definition at line 77 of file ConfirmEditHooks.php.
References getInstance().
|
static |
Definition at line 133 of file ConfirmEditHooks.php.
References wfDeprecated().
|
static |
MailAddress | $from | |
MailAddress | $to | |
string | $subject | |
string | $text | |
string | &$error |
Definition at line 105 of file ConfirmEditHooks.php.
References getInstance().
|
static |
Get the global Captcha instance.
Definition at line 13 of file ConfirmEditHooks.php.
Referenced by confirmEditMerged(), confirmEditPage(), confirmEmailUser(), SpecialCaptcha\execute(), CountFancyCaptchas\execute(), DeleteOldFancyCaptchas\execute(), GenerateFancyCaptchas\execute(), CaptchaPreAuthenticationProvider\getAuthenticationRequests(), CaptchaAuthenticationRequest\getFieldInfo(), CaptchaAuthenticationRequest\getMetadata(), injectEmailUser(), CaptchaAuthenticationRequest\loadFromSubmission(), onAPIGetAllowedParams(), onAuthChangeFormFields(), CaptchaPreAuthenticationProvider\postAuthentication(), showEditFormFields(), CaptchaPreAuthenticationProvider\testForAccountCreation(), and CaptchaPreAuthenticationProvider\testForAuthentication().
|
static |
HTMLForm | &$form |
Definition at line 93 of file ConfirmEditHooks.php.
References getInstance().
|
static |
AlternateEditPreview hook handler.
Replaces the preview with a check of all lines for the [[MediaWiki:Captcha-ip-whitelist]] interface message, if it validates as an IP address.
EditPage | $editor | |
Content | &$content | |
string | &$html | |
ParserOutput | &$po |
Definition at line 193 of file ConfirmEditHooks.php.
References $content, $lang, $line, $lines, $title, EditPage\getArticle(), EditPage\getTitle(), IP\isIPAddress(), Title\makeTitle(), and NS_MEDIAWIKI.
|
static |
APIGetAllowedParams hook handler Default $flags to 1 for backwards-compatible behavior.
ApiBase | &$module | |
array | &$params | |
int | $flags |
Definition at line 117 of file ConfirmEditHooks.php.
References getInstance().
|
static |
array | $requests | |
array | $fieldInfo | |
array | &$formDescriptor | |
string | $action |
Definition at line 127 of file ConfirmEditHooks.php.
References getInstance().
|
static |
Callback for extension.json of FancyCaptcha to set a default captcha directory, which depends on wgUploadDirectory.
Definition at line 174 of file ConfirmEditHooks.php.
References $wgUploadDirectory.
|
static |
PageContentSaveComplete hook handler.
Clear IP whitelist cache on page saves for [[MediaWiki:Captcha-ip-whitelist]].
WikiPage | $wikiPage | |
User | $user | |
Content | $content | |
string | $summary | |
bool | $isMinor | |
bool | $isWatch | |
string | $section | |
int | $flags | |
int | $revision | |
Status | $status | |
int | $baseRevId |
Definition at line 62 of file ConfirmEditHooks.php.
References $cache, $title, WikiPage\getTitle(), and NS_MEDIAWIKI.
TitleReadWhitelist hook handler.
Definition at line 161 of file ConfirmEditHooks.php.
References $help, $title, and SpecialPage\getTitleFor().
|
static |
EditPage | $editPage | |
OutputPage | &$out |
Definition at line 85 of file ConfirmEditHooks.php.
References getInstance().
|
staticprotected |
Definition at line 6 of file ConfirmEditHooks.php.