MediaWiki
1.30.0
|
Static Public Member Functions | |
static | APIGetAllowedParams (&$module, &$params, $flags=1) |
static | confirmEditMerged ( $context, $content, $status, $summary, $user, $minorEdit) |
static | confirmEditPage ( $editpage, $buttons, $tabindex) |
static | confirmEditSetup () |
Set up $wgWhitelistRead. More... | |
static | confirmEmailUser ( $from, $to, $subject, $text, &$error) |
static | efReCaptcha () |
Extension function, moved from ReCaptcha.php when that was decimated. More... | |
static | getInstance () |
Get the global Captcha instance. More... | |
static | injectEmailUser (&$form) |
static | onAlternateEditPreview (EditPage $editor, &$content, &$html, &$po) |
AlternateEditPreview hook handler. 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 | onReCaptchaSetup () |
Callback for extension.json of ReCaptcha to require the recaptcha library php file. 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 |
Definition at line 76 of file ConfirmEditHooks.php.
References $flags, $params, and getInstance().
|
static |
Definition at line 24 of file ConfirmEditHooks.php.
References $context, $user, and getInstance().
|
static |
Definition at line 59 of file ConfirmEditHooks.php.
References getInstance().
|
static |
Set up $wgWhitelistRead.
Definition at line 89 of file ConfirmEditHooks.php.
References global, and wfDeprecated().
|
static |
Definition at line 71 of file ConfirmEditHooks.php.
References getInstance().
|
static |
Extension function, moved from ReCaptcha.php when that was decimated.
Make sure the keys are defined.
Definition at line 149 of file ConfirmEditHooks.php.
References $wgServerName, and global.
|
static |
Get the global Captcha instance.
Definition at line 13 of file ConfirmEditHooks.php.
References global.
Referenced by APIGetAllowedParams(), confirmEditMerged(), confirmEditPage(), confirmEmailUser(), CaptchaSpecialPage\execute(), CountFancyCaptchas\execute(), DeleteOldFancyCaptchas\execute(), GenerateFancyCaptchas\execute(), CaptchaPreAuthenticationProvider\getAuthenticationRequests(), CaptchaAuthenticationRequest\getFieldInfo(), CaptchaAuthenticationRequest\getMetadata(), injectEmailUser(), CaptchaAuthenticationRequest\loadFromSubmission(), onAuthChangeFormFields(), ReCaptcha\onAuthChangeFormFields(), CaptchaPreAuthenticationProvider\postAuthentication(), showEditFormFields(), CaptchaPreAuthenticationProvider\testForAccountCreation(), and CaptchaPreAuthenticationProvider\testForAuthentication().
|
static |
Definition at line 67 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 186 of file ConfirmEditHooks.php.
References $css, $editor, $html, $lang, $line, $lines, $out, $title, as, Html\closeElement(), Html\element(), IP\isIPAddress(), Title\makeTitle(), NS_MEDIAWIKI, Html\openElement(), and Html\rawElement().
|
static |
Definition at line 80 of file ConfirmEditHooks.php.
References $requests, and getInstance().
|
static |
Callback for extension.json of FancyCaptcha to set a default captcha directory, which depends on wgUploadDirectory.
Definition at line 130 of file ConfirmEditHooks.php.
References $wgUploadDirectory, and global.
|
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 47 of file ConfirmEditHooks.php.
References $cache, $title, ObjectCache\getMainWANInstance(), WikiPage\getTitle(), and NS_MEDIAWIKI.
|
static |
Callback for extension.json of ReCaptcha to require the recaptcha library php file.
FIXME: This should be done in a better way, e.g. only load the libraray, if really needed.
Definition at line 141 of file ConfirmEditHooks.php.
TitleReadWhitelist hook handler.
Definition at line 117 of file ConfirmEditHooks.php.
References $help, $image, $title, and SpecialPage\getTitleFor().
|
static |
Definition at line 63 of file ConfirmEditHooks.php.
References $out, and getInstance().
|
staticprotected |
Definition at line 6 of file ConfirmEditHooks.php.