MediaWiki
REL1_19
|
Special page allowing users with the appropriate permissions to view and restore deleted content. More...
Public Member Functions | |
__construct () | |
execute ($par) | |
Default execute method Checks user permissions, calls the function given in mFunction. | |
getFileComment ($file) | |
Fetch file upload comment if it's available to this user. | |
getFileLink ($file, $titleObj, $ts, $key) | |
Fetch image view link if it's available to all users. | |
getFileUser ($file) | |
Fetch file's user id if it's available to this user. | |
getPageLink ($rev, $titleObj, $ts) | |
Fetch revision text link if it's available to all users. | |
loadRequest ($par) | |
showDiff ($previousRev, $currentRev) | |
Build a diff display between this and the previous either deleted or non-deleted edit. | |
showSearchForm () | |
undelete () | |
Public Attributes | |
$mAction | |
$mAllowed | |
$mCanView | |
$mComment | |
$mFilename | |
$mInvert | |
$mRestore | |
$mTarget | |
$mTargetObj | |
$mTargetTimestamp | |
$mTimestamp | |
$mToken | |
Private Member Functions | |
diffHeader ($rev, $prefix) | |
formatFileRow ($row) | |
formatRevisionRow ($row, $earliestLiveTime, $remaining) | |
showFile ($key) | |
Show a deleted file version requested by the visitor. | |
showFileConfirmationForm ($key) | |
Show a form confirming whether a tokenless user really wants to see a file. | |
showHistory () | |
showList ($result) | |
Generic list of deleted pages. | |
showRevision ($timestamp) |
Special page allowing users with the appropriate permissions to view and restore deleted content.
Definition at line 572 of file SpecialUndelete.php.
Definition at line 581 of file SpecialUndelete.php.
SpecialUndelete::diffHeader | ( | $ | rev, |
$ | prefix | ||
) | [private] |
$rev | Revision |
$prefix |
Definition at line 918 of file SpecialUndelete.php.
References $user, SpecialPage\getLanguage(), Linker\getRevDeleteLink(), SpecialPage\getTitle(), SpecialPage\getUser(), Linker\link(), SpecialPage\msg(), Linker\revComment(), Linker\revUserTools(), and wfTimestamp().
Referenced by showDiff().
SpecialUndelete::execute | ( | $ | par | ) |
Default execute method Checks user permissions, calls the function given in mFunction.
This must be overridden by subclasses; it will be made abstract in a future version
$par | String subpage string, if one was specified |
Reimplemented from SpecialPage.
Definition at line 647 of file SpecialUndelete.php.
References $file, $out, $user, SpecialPage\checkPermissions(), File\DELETED_FILE, File\DELETED_RESTRICTED, SpecialPage\getOutput(), SpecialPage\getSkin(), SpecialPage\getUser(), loadRequest(), SpecialPage\msg(), SpecialPage\outputHeader(), SpecialPage\setHeaders(), showFile(), showFileConfirmationForm(), showHistory(), showRevision(), showSearchForm(), and undelete().
SpecialUndelete::formatFileRow | ( | $ | row | ) | [private] |
Definition at line 1221 of file SpecialUndelete.php.
References $comment, $file, $user, Xml\check(), File\DELETED_RESTRICTED, getFileComment(), getFileLink(), getFileUser(), SpecialPage\getLanguage(), SpecialPage\getTitle(), SpecialPage\getUser(), SpecialPage\msg(), ArchivedFile\newFromRow(), Linker\revDeleteLink(), Linker\revDeleteLinkDisabled(), and wfTimestamp().
Referenced by showHistory().
SpecialUndelete::formatRevisionRow | ( | $ | row, |
$ | earliestLiveTime, | ||
$ | remaining | ||
) | [private] |
Definition at line 1160 of file SpecialUndelete.php.
References $comment, $size, $user, Xml\check(), Revision\DELETED_TEXT, Linker\formatRevisionSize(), SpecialPage\getLanguage(), getPageLink(), Linker\getRevDeleteLink(), SpecialPage\getTitle(), SpecialPage\getUser(), Linker\linkKnown(), SpecialPage\msg(), Revision\newFromArchiveRow(), Linker\revComment(), Linker\revUserTools(), and wfTimestamp().
Referenced by showHistory().
SpecialUndelete::getFileComment | ( | $ | file | ) |
Fetch file upload comment if it's available to this user.
$file | File |
Definition at line 1351 of file SpecialUndelete.php.
References $file, Linker\commentBlock(), File\DELETED_COMMENT, and SpecialPage\msg().
Referenced by formatFileRow().
SpecialUndelete::getFileLink | ( | $ | file, |
$ | titleObj, | ||
$ | ts, | ||
$ | key | ||
) |
Fetch image view link if it's available to all users.
Definition at line 1302 of file SpecialUndelete.php.
References $file, $user, File\DELETED_FILE, SpecialPage\getLanguage(), SpecialPage\getUser(), and Linker\linkKnown().
Referenced by formatFileRow().
SpecialUndelete::getFileUser | ( | $ | file | ) |
Fetch file's user id if it's available to this user.
$file | File |
Definition at line 1332 of file SpecialUndelete.php.
References $file, File\DELETED_USER, SpecialPage\msg(), Linker\userLink(), and Linker\userToolLinks().
Referenced by formatFileRow().
SpecialUndelete::getPageLink | ( | $ | rev, |
$ | titleObj, | ||
$ | ts | ||
) |
Fetch revision text link if it's available to all users.
Definition at line 1269 of file SpecialUndelete.php.
References $user, Revision\DELETED_TEXT, SpecialPage\getLanguage(), SpecialPage\getUser(), and Linker\linkKnown().
Referenced by formatRevisionRow().
SpecialUndelete::loadRequest | ( | $ | par | ) |
Definition at line 585 of file SpecialUndelete.php.
References $matches, $user, SpecialPage\getRequest(), SpecialPage\getUser(), Title\newFromURL(), and wfTimestamp().
Referenced by execute().
SpecialUndelete::showDiff | ( | $ | previousRev, |
$ | currentRev | ||
) |
Build a diff display between this and the previous either deleted or non-deleted edit.
Definition at line 888 of file SpecialUndelete.php.
References diffHeader(), SpecialPage\getContext(), and SpecialPage\getOutput().
Referenced by showRevision().
SpecialUndelete::showFile | ( | $ | key | ) | [private] |
Show a deleted file version requested by the visitor.
Definition at line 988 of file SpecialUndelete.php.
References $path, SpecialPage\getOutput(), SpecialPage\getRequest(), and RepoGroup\singleton().
Referenced by execute().
SpecialUndelete::showFileConfirmationForm | ( | $ | key | ) | [private] |
Show a form confirming whether a tokenless user really wants to see a file.
Definition at line 962 of file SpecialUndelete.php.
References $file, $out, $user, SpecialPage\getLanguage(), SpecialPage\getOutput(), SpecialPage\getTitle(), SpecialPage\getUser(), SpecialPage\msg(), Xml\openElement(), and Xml\submitButton().
Referenced by execute().
SpecialUndelete::showHistory | ( | ) | [private] |
Definition at line 1005 of file SpecialUndelete.php.
References $files, $out, Xml\checkLabel(), Xml\closeElement(), Xml\element(), Xml\fieldset(), formatFileRow(), formatRevisionRow(), SpecialPage\getOutput(), SpecialPage\getTitle(), SpecialPage\getUser(), Html\hidden(), Xml\input(), Xml\label(), LogPage\logName(), Title\makeTitleSafe(), SpecialPage\msg(), Xml\openElement(), LogEventsList\showLogExtract(), Xml\submitButton(), and wfRunHooks().
Referenced by execute().
SpecialUndelete::showList | ( | $ | result | ) | [private] |
Generic list of deleted pages.
$result | ResultWrapper |
Definition at line 734 of file SpecialUndelete.php.
References $out, $result, $title, SpecialPage\getLanguage(), SpecialPage\getOutput(), SpecialPage\getTitle(), Linker\linkKnown(), Title\makeTitleSafe(), and SpecialPage\msg().
Referenced by showSearchForm().
SpecialUndelete::showRevision | ( | $ | timestamp | ) | [private] |
Definition at line 763 of file SpecialUndelete.php.
References $out, $t, $user, Xml\closeElement(), Revision\DELETED_TEXT, Xml\element(), Revision\FOR_THIS_USER, SpecialPage\getLanguage(), SpecialPage\getOutput(), Linker\getRevDeleteLink(), SpecialPage\getTitle(), SpecialPage\getUser(), Linker\linkKnown(), SpecialPage\msg(), Xml\openElement(), Linker\revUserTools(), showDiff(), and wfRunHooks().
Referenced by execute().
Definition at line 701 of file SpecialUndelete.php.
References $out, $result, $wgScript, Xml\closeElement(), Xml\fieldset(), SpecialPage\getOutput(), SpecialPage\getTitle(), Html\hidden(), Xml\inputLabel(), PageArchive\listPagesByPrefix(), SpecialPage\msg(), Xml\openElement(), showList(), and Xml\submitButton().
Referenced by execute().
Definition at line 1364 of file SpecialUndelete.php.
References $ok, $out, $wgUploadMaintenance, SpecialPage\getOutput(), SpecialPage\getUser(), Linker\linkKnown(), SpecialPage\msg(), wfReadOnly(), and wfRunHooks().
Referenced by execute().
SpecialUndelete::$mAction |
Definition at line 573 of file SpecialUndelete.php.
SpecialUndelete::$mAllowed |
Definition at line 574 of file SpecialUndelete.php.
SpecialUndelete::$mCanView |
Definition at line 574 of file SpecialUndelete.php.
SpecialUndelete::$mComment |
Definition at line 574 of file SpecialUndelete.php.
SpecialUndelete::$mFilename |
Definition at line 573 of file SpecialUndelete.php.
SpecialUndelete::$mInvert |
Definition at line 573 of file SpecialUndelete.php.
SpecialUndelete::$mRestore |
Definition at line 573 of file SpecialUndelete.php.
SpecialUndelete::$mTarget |
Definition at line 573 of file SpecialUndelete.php.
SpecialUndelete::$mTargetObj |
Definition at line 579 of file SpecialUndelete.php.
SpecialUndelete::$mTargetTimestamp |
Definition at line 574 of file SpecialUndelete.php.
SpecialUndelete::$mTimestamp |
Definition at line 573 of file SpecialUndelete.php.
SpecialUndelete::$mToken |
Definition at line 574 of file SpecialUndelete.php.