MediaWiki
REL1_19
|
A form to make the database readonly (eg for maintenance purposes). More...
Public Member Functions | |
__construct () | |
checkExecutePermissions (User $user) | |
Called from execute() to check if the given user can perform this action. | |
onSubmit (array $data) | |
Process the form on POST submission. | |
onSuccess () | |
Do something exciting on successful processing of the form, most likely to show a confirmation message. | |
requiresWrite () | |
Whether this action requires the wiki not to be locked. | |
Public Attributes | |
$reason = '' | |
Protected Member Functions | |
alterForm (HTMLForm $form) | |
Play with the HTMLForm if you need to more substantially. | |
getFormFields () | |
Get an HTMLForm descriptor array. |
A form to make the database readonly (eg for maintenance purposes).
Definition at line 29 of file SpecialLockdb.php.
Definition at line 32 of file SpecialLockdb.php.
SpecialLockdb::alterForm | ( | HTMLForm $ | form | ) | [protected] |
Play with the HTMLForm if you need to more substantially.
$form | HTMLForm |
Reimplemented from FormSpecialPage.
Definition at line 65 of file SpecialLockdb.php.
References SpecialPage\msg(), HTMLForm\setHeaderText(), HTMLForm\setSubmitTextMsg(), and HTMLForm\setWrapperLegend().
SpecialLockdb::checkExecutePermissions | ( | User $ | user | ) |
Called from execute() to check if the given user can perform this action.
Failures here must throw subclasses of ErrorPageError.
$user | User |
ErrorPageError |
Reimplemented from FormSpecialPage.
Definition at line 40 of file SpecialLockdb.php.
References $wgReadOnlyFile.
SpecialLockdb::getFormFields | ( | ) | [protected] |
Get an HTMLForm descriptor array.
Reimplemented from FormSpecialPage.
Definition at line 50 of file SpecialLockdb.php.
SpecialLockdb::onSubmit | ( | array $ | data | ) |
Process the form on POST submission.
$data | Array |
Reimplemented from FormSpecialPage.
Definition at line 71 of file SpecialLockdb.php.
References $wgContLang, $wgReadOnlyFile, SpecialPage\getName(), SpecialPage\getUser(), Status\newFatal(), Status\newGood(), wfMsgExt(), wfRestoreWarnings(), wfSuppressWarnings(), and wfTimestampNow().
Do something exciting on successful processing of the form, most likely to show a confirmation message.
Reimplemented from FormSpecialPage.
Definition at line 102 of file SpecialLockdb.php.
References $out, SpecialPage\getOutput(), and SpecialPage\msg().
Whether this action requires the wiki not to be locked.
Reimplemented from FormSpecialPage.
Definition at line 36 of file SpecialLockdb.php.
SpecialLockdb::$reason = '' |
Definition at line 30 of file SpecialLockdb.php.