MediaWiki
REL1_31
SpecialCaptcha.php
Go to the documentation of this file.
1
<?php
2
class
CaptchaSpecialPage
extends
UnlistedSpecialPage
{
3
public
function
__construct
() {
4
parent::__construct(
'Captcha'
);
5
}
6
7
function
execute
( $par ) {
8
$this->
setHeaders
();
9
10
$instance =
ConfirmEditHooks::getInstance
();
11
12
switch
( $par ) {
13
case
"image"
:
14
if
( method_exists( $instance,
'showImage'
) ) {
15
return
$instance->showImage();
16
}
17
case
"help"
:
18
default
:
19
return
$instance->showHelp();
20
}
21
}
22
}
CaptchaSpecialPage
Definition
SpecialCaptcha.php:2
CaptchaSpecialPage\execute
execute( $par)
Default execute method Checks user permissions.
Definition
SpecialCaptcha.php:7
CaptchaSpecialPage\__construct
__construct()
Definition
SpecialCaptcha.php:3
ConfirmEditHooks\getInstance
static getInstance()
Get the global Captcha instance.
Definition
ConfirmEditHooks.php:11
SpecialPage\setHeaders
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
Definition
SpecialPage.php:527
UnlistedSpecialPage
Shortcut to construct a special page which is unlisted by default.
Definition
UnlistedSpecialPage.php:29
extensions
ConfirmEdit
includes
specials
SpecialCaptcha.php
Generated on Mon Nov 25 2024 15:34:16 for MediaWiki by
1.10.0