Public Member Functions | |
UndeleteForm ($request, $par="") | |
execute () | |
showSearchForm () | |
showDiff ($previousRev, $currentRev) | |
Build a diff display between this and the previous either deleted or non-deleted edit. | |
getPageLink ($rev, $titleObj, $ts, $sk) | |
Fetch revision text link if it's available to all users. | |
getFileLink ($file, $titleObj, $ts, $key, $sk) | |
Fetch image view link if it's available to all users. | |
getFileUser ($file, $sk) | |
Fetch file's user id if it's available to this user. | |
getFileComment ($file, $sk) | |
Fetch file upload comment if it's available to this user. | |
undelete () | |
Public Attributes | |
$mAction | |
$mTarget | |
$mTimestamp | |
$mRestore | |
$mInvert | |
$mTargetObj | |
$mTargetTimestamp | |
$mAllowed | |
$mComment | |
$mToken | |
Private Member Functions | |
showList ($result) | |
showRevision ($timestamp) | |
diffHeader ($rev, $prefix) | |
showFileConfirmationForm ($key) | |
Show a form confirming whether a tokenless user really wants to see a file. | |
showFile ($key) | |
Show a deleted file version requested by the visitor. | |
showHistory () | |
formatRevisionRow ($row, $earliestLiveTime, $remaining, $sk) | |
formatFileRow ($row, $sk) |
Definition at line 570 of file SpecialUndelete.php.
UndeleteForm::diffHeader | ( | $ | rev, | |
$ | prefix | |||
) | [private] |
Definition at line 859 of file SpecialUndelete.php.
References $prefix, $wgLang, $wgUser, SpecialPage::getTitleFor(), wfMsgHtml(), and wfTimestamp().
Referenced by showDiff().
UndeleteForm::execute | ( | ) |
Definition at line 626 of file SpecialUndelete.php.
References $file, $result, $wgOut, $wgUser, File::DELETED_FILE, PageArchive::listPagesByPrefix(), showFile(), showFileConfirmationForm(), showHistory(), showList(), showRevision(), showSearchForm(), undelete(), wfMsg(), and wfMsgHtml().
UndeleteForm::formatFileRow | ( | $ | row, | |
$ | sk | |||
) | [private] |
Definition at line 1154 of file SpecialUndelete.php.
References $file, $key, $row, $ts, $wgLang, $wgUser, Xml::check(), File::DELETED_RESTRICTED, getFileComment(), getFileLink(), getFileUser(), SpecialPage::getTitleFor(), ArchivedFile::newFromRow(), Xml::tags(), wfMsg(), wfMsgHtml(), and wfTimestamp().
Referenced by showHistory().
UndeleteForm::formatRevisionRow | ( | $ | row, | |
$ | earliestLiveTime, | |||
$ | remaining, | |||
$ | sk | |||
) | [private] |
Definition at line 1091 of file SpecialUndelete.php.
References $row, $size, $ts, $wgLang, $wgUser, Xml::check(), Revision::DELETED_RESTRICTED, Revision::DELETED_TEXT, getPageLink(), SpecialPage::getTitleFor(), Xml::tags(), wfMsgHtml(), and wfTimestamp().
Referenced by showHistory().
UndeleteForm::getFileComment | ( | $ | file, | |
$ | sk | |||
) |
Fetch file upload comment if it's available to this user.
Definition at line 1253 of file SpecialUndelete.php.
References $file, File::DELETED_COMMENT, and wfMsgHtml().
Referenced by formatFileRow().
UndeleteForm::getFileLink | ( | $ | file, | |
$ | titleObj, | |||
$ | ts, | |||
$ | key, | |||
$ | sk | |||
) |
Fetch image view link if it's available to all users.
Definition at line 1217 of file SpecialUndelete.php.
References $file, $key, $ts, $wgLang, $wgUser, and File::DELETED_FILE.
Referenced by formatFileRow().
UndeleteForm::getFileUser | ( | $ | file, | |
$ | sk | |||
) |
Fetch file's user id if it's available to this user.
Definition at line 1237 of file SpecialUndelete.php.
References $file, File::DELETED_USER, and wfMsgHtml().
Referenced by formatFileRow().
UndeleteForm::getPageLink | ( | $ | rev, | |
$ | titleObj, | |||
$ | ts, | |||
$ | sk | |||
) |
Fetch revision text link if it's available to all users.
Definition at line 1199 of file SpecialUndelete.php.
References $ts, $wgLang, and Revision::DELETED_TEXT.
Referenced by formatRevisionRow().
UndeleteForm::showDiff | ( | $ | previousRev, | |
$ | currentRev | |||
) |
Build a diff display between this and the previous either deleted or non-deleted edit.
Definition at line 832 of file SpecialUndelete.php.
References $wgOut, $wgUser, and diffHeader().
Referenced by showRevision().
UndeleteForm::showFile | ( | $ | key | ) | [private] |
Show a deleted file version requested by the visitor.
Definition at line 918 of file SpecialUndelete.php.
References $key, $wgOut, $wgRequest, and FileStore::get().
Referenced by execute().
UndeleteForm::showFileConfirmationForm | ( | $ | key | ) | [private] |
Show a form confirming whether a tokenless user really wants to see a file.
Definition at line 894 of file SpecialUndelete.php.
References $file, $key, $wgLang, $wgOut, $wgUser, SpecialPage::getTitleFor(), Xml::openElement(), Xml::submitButton(), and wfMsg().
Referenced by execute().
UndeleteForm::showHistory | ( | ) | [private] |
Definition at line 934 of file SpecialUndelete.php.
References $action, $archive, $batch, $files, $row, $wgLang, $wgOut, $wgUser, Xml::checkLabel(), Xml::closeElement(), Xml::element(), Xml::fieldset(), formatFileRow(), formatRevisionRow(), SpecialPage::getTitleFor(), Xml::hidden(), Xml::input(), Xml::label(), LogPage::logName(), Title::makeTitleSafe(), Xml::openElement(), LogEventsList::showLogExtract(), Xml::submitButton(), wfMsg(), wfMsgHtml(), and wfMsgWikiHtml().
Referenced by execute().
UndeleteForm::showList | ( | $ | result | ) | [private] |
Definition at line 695 of file SpecialUndelete.php.
References $result, $row, $title, $wgContLang, $wgLang, $wgOut, $wgUser, SpecialPage::getTitleFor(), Title::makeTitleSafe(), and wfMsgExt().
Referenced by execute().
UndeleteForm::showRevision | ( | $ | timestamp | ) | [private] |
Definition at line 723 of file SpecialUndelete.php.
References $archive, $self, $t, $user, $wgLang, $wgOut, $wgUser, Xml::closeElement(), Revision::DELETED_TEXT, Xml::element(), Revision::FOR_THIS_USER, SpecialPage::getTitleFor(), Xml::openElement(), showDiff(), wfMsg(), wfMsgHtml(), and wfRunHooks().
Referenced by execute().
UndeleteForm::showSearchForm | ( | ) |
Definition at line 674 of file SpecialUndelete.php.
References $wgOut, $wgScript, Xml::closeElement(), Xml::fieldset(), SpecialPage::getTitleFor(), Xml::hidden(), Xml::inputLabel(), Xml::openElement(), Xml::submitButton(), and wfMsg().
Referenced by execute().
UndeleteForm::undelete | ( | ) |
Definition at line 1264 of file SpecialUndelete.php.
References $archive, $ok, $status, $wgOut, $wgUser, wfMsg(), wfMsgHtml(), wfMsgWikiHtml(), wfReadOnly(), and wfRunHooks().
Referenced by execute().
UndeleteForm::UndeleteForm | ( | $ | request, | |
$ | par = "" | |||
) |
Definition at line 574 of file SpecialUndelete.php.
References $key, $wgUser, Title::newFromURL(), and wfTimestamp().
UndeleteForm::$mAction |
Definition at line 571 of file SpecialUndelete.php.
UndeleteForm::$mAllowed |
Definition at line 572 of file SpecialUndelete.php.
UndeleteForm::$mComment |
Definition at line 572 of file SpecialUndelete.php.
UndeleteForm::$mInvert |
Definition at line 571 of file SpecialUndelete.php.
UndeleteForm::$mRestore |
Definition at line 571 of file SpecialUndelete.php.
UndeleteForm::$mTarget |
Definition at line 571 of file SpecialUndelete.php.
UndeleteForm::$mTargetObj |
Definition at line 571 of file SpecialUndelete.php.
UndeleteForm::$mTargetTimestamp |
Definition at line 572 of file SpecialUndelete.php.
UndeleteForm::$mTimestamp |
Definition at line 571 of file SpecialUndelete.php.
UndeleteForm::$mToken |
Definition at line 572 of file SpecialUndelete.php.