MediaWiki
fundraising/REL1_35
SystemStatus.php
Go to the documentation of this file.
1
<?php
8
class
SystemStatus
extends
UnlistedSpecialPage
{
9
10
public
function
__construct
() {
11
parent::__construct(
'SystemStatus'
);
12
}
13
14
public
function
execute
( $par ) {
15
if
( !$this->
getConfig
()->
get
(
'DonationInterfaceEnableSystemStatus'
) ) {
16
throw
new
BadTitleError
();
17
}
18
19
// Right now we just need something that doesn't end up creating
20
// contribution_ids for testing.
21
echo
"<pre>OK</pre>"
;
22
die();
23
}
24
25
}
BadTitleError
Show an error page on a badtitle.
Definition
BadTitleError.php:31
SpecialPage\getConfig
getConfig()
Shortcut to get main config object.
Definition
SpecialPage.php:794
SystemStatus
SystemStatus will eventually be a page that runs some internal tests and reports back for Nagios/Icin...
Definition
SystemStatus.php:8
SystemStatus\execute
execute( $par)
Default execute method Checks user permissions.
Definition
SystemStatus.php:14
SystemStatus\__construct
__construct()
Definition
SystemStatus.php:10
UnlistedSpecialPage
Shortcut to construct a special page which is unlisted by default.
Definition
UnlistedSpecialPage.php:31
extensions
DonationInterface
special
SystemStatus.php
Generated on Mon Nov 25 2024 16:14:09 for MediaWiki by
1.10.0