MediaWiki
REL1_32
SpecialCaptcha.php
Go to the documentation of this file.
1
<?php
2
3
class
SpecialCaptcha
extends
UnlistedSpecialPage
{
4
public
function
__construct
() {
5
parent::__construct(
'Captcha'
);
6
}
7
8
public
function
execute
( $par ) {
9
$this->
setHeaders
();
10
11
$instance =
ConfirmEditHooks::getInstance
();
12
13
switch
( $par ) {
14
case
"image"
:
15
if
( method_exists( $instance,
'showImage'
) ) {
16
// @todo: Do this in a more OOP way
17
return
$instance->showImage();
18
}
19
case
"help"
:
20
default
:
21
return
$instance->showHelp();
22
}
23
}
24
}
ConfirmEditHooks\getInstance
static getInstance()
Get the global Captcha instance.
Definition
ConfirmEditHooks.php:11
SpecialCaptcha
Definition
SpecialCaptcha.php:3
SpecialCaptcha\execute
execute( $par)
Default execute method Checks user permissions.
Definition
SpecialCaptcha.php:8
SpecialCaptcha\__construct
__construct()
Definition
SpecialCaptcha.php:4
SpecialPage\setHeaders
setHeaders()
Sets headers - this should be called from the execute() method of all derived classes!
Definition
SpecialPage.php:531
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:56:34 for MediaWiki by
1.10.0