Public Member Functions | |
| __construct ($file) | |
| Constructor. | |
| execute () | |
| Fulfil the request; shows the form or reverts the file, pending authentication, confirmation, etc. | |
Protected Member Functions | |
| showForm () | |
| Show the confirmation form. | |
| setHeaders () | |
| Set headers, titles and other bits. | |
| isValidOldSpec () | |
| Is the provided `oldimage` value valid? | |
| haveOldVersion () | |
| Does the provided `oldimage` value correspond to an existing, local, old version of this file? | |
| getAction () | |
| Prepare the form action. | |
| getTimestamp () | |
| Extract the timestamp of the old version. | |
| getOldFile () | |
Protected Attributes | |
| $title = null | |
| $file = null | |
| $archiveName = '' | |
| $timestamp = false | |
| $oldFile | |
Definition at line 9 of file FileRevertForm.php.
| FileRevertForm::__construct | ( | $ | file | ) |
| FileRevertForm::execute | ( | ) |
Fulfil the request; shows the form or reverts the file, pending authentication, confirmation, etc.
Definition at line 31 of file FileRevertForm.php.
References $source, $status, $wgLang, $wgOut, $wgRequest, $wgUser, getTimestamp(), haveOldVersion(), isValidOldSpec(), setHeaders(), showForm(), wfExpandUrl(), wfMsgExt(), and wfReadOnly().
| FileRevertForm::getAction | ( | ) | [protected] |
Prepare the form action.
Definition at line 146 of file FileRevertForm.php.
Referenced by showForm().
| FileRevertForm::getOldFile | ( | ) | [protected] |
Definition at line 165 of file FileRevertForm.php.
References RepoGroup::singleton().
Referenced by getTimestamp(), and haveOldVersion().
| FileRevertForm::getTimestamp | ( | ) | [protected] |
Extract the timestamp of the old version.
Definition at line 158 of file FileRevertForm.php.
References getOldFile().
Referenced by execute(), and showForm().
| FileRevertForm::haveOldVersion | ( | ) | [protected] |
Does the provided `oldimage` value correspond to an existing, local, old version of this file?
Definition at line 137 of file FileRevertForm.php.
References getOldFile().
Referenced by execute().
| FileRevertForm::isValidOldSpec | ( | ) | [protected] |
Is the provided `oldimage` value valid?
Definition at line 125 of file FileRevertForm.php.
Referenced by execute().
| FileRevertForm::setHeaders | ( | ) | [protected] |
| FileRevertForm::showForm | ( | ) | [protected] |
Show the confirmation form.
Definition at line 90 of file FileRevertForm.php.
References $timestamp, $wgContLang, $wgLang, $wgOut, $wgRequest, $wgUser, getAction(), getTimestamp(), Xml::hidden(), Xml::inputLabel(), Xml::openElement(), Xml::submitButton(), wfExpandUrl(), wfMsg(), wfMsgExt(), wfMsgForContent(), and wfMsgHtml().
Referenced by execute().
FileRevertForm::$archiveName = '' [protected] |
Definition at line 13 of file FileRevertForm.php.
FileRevertForm::$file = null [protected] |
FileRevertForm::$oldFile [protected] |
Definition at line 15 of file FileRevertForm.php.
FileRevertForm::$timestamp = false [protected] |
FileRevertForm::$title = null [protected] |
Definition at line 11 of file FileRevertForm.php.
1.5.9