MediaWiki
REL1_22
|
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 | |
Title | $mTargetObj |
$mTargetTimestamp | |
$mTimestamp | |
$mToken | |
Protected Member Functions | |
getGroupName () | |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'. | |
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 651 of file SpecialUndelete.php.
Definition at line 659 of file SpecialUndelete.php.
Referenced by loadRequest().
SpecialUndelete::diffHeader | ( | $ | rev, |
$ | prefix | ||
) | [private] |
Revision | $rev | |
string | $prefix |
Definition at line 1058 of file SpecialUndelete.php.
SpecialUndelete::execute | ( | $ | subPage | ) |
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
$subPage | string|null |
Reimplemented from SpecialPage.
Definition at line 728 of file SpecialUndelete.php.
SpecialUndelete::formatFileRow | ( | $ | row | ) | [private] |
Definition at line 1385 of file SpecialUndelete.php.
SpecialUndelete::formatRevisionRow | ( | $ | row, |
$ | earliestLiveTime, | ||
$ | remaining | ||
) | [private] |
Definition at line 1311 of file SpecialUndelete.php.
SpecialUndelete::getFileComment | ( | $ | file | ) |
Fetch file upload comment if it's available to this user.
File | ArchivedFile | $file |
Definition at line 1526 of file SpecialUndelete.php.
SpecialUndelete::getFileLink | ( | $ | file, |
$ | titleObj, | ||
$ | ts, | ||
$ | key | ||
) |
Fetch image view link if it's available to all users.
File | ArchivedFile | $file | |
Title | $titleObj | |
string | $ts | A timestamp |
string | $key | a storage key |
Definition at line 1471 of file SpecialUndelete.php.
SpecialUndelete::getFileUser | ( | $ | file | ) |
Fetch file's user id if it's available to this user.
File | ArchivedFile | $file |
Definition at line 1503 of file SpecialUndelete.php.
SpecialUndelete::getGroupName | ( | ) | [protected] |
Under which header this special page is listed in Special:SpecialPages See messages 'specialpages-group-*' for valid names This method defaults to group 'other'.
Reimplemented from SpecialPage.
Definition at line 1589 of file SpecialUndelete.php.
SpecialUndelete::getPageLink | ( | $ | rev, |
$ | titleObj, | ||
$ | ts | ||
) |
Fetch revision text link if it's available to all users.
Definition at line 1436 of file SpecialUndelete.php.
SpecialUndelete::loadRequest | ( | $ | par | ) |
Definition at line 663 of file SpecialUndelete.php.
References __construct().
SpecialUndelete::showDiff | ( | $ | previousRev, |
$ | currentRev | ||
) |
Build a diff display between this and the previous either deleted or non-deleted edit.
Definition at line 1024 of file SpecialUndelete.php.
SpecialUndelete::showFile | ( | $ | key | ) | [private] |
Show a deleted file version requested by the visitor.
Definition at line 1133 of file SpecialUndelete.php.
References $response, SpecialPage\getOutput(), SpecialPage\getRequest(), and RepoGroup\singleton().
SpecialUndelete::showFileConfirmationForm | ( | $ | key | ) | [private] |
Show a form confirming whether a tokenless user really wants to see a file.
Definition at line 1106 of file SpecialUndelete.php.
References $file, $out, $user, array(), SpecialPage\getLanguage(), SpecialPage\getOutput(), SpecialPage\getTitle(), SpecialPage\getUser(), SpecialPage\msg(), Xml\openElement(), Xml\submitButton(), and text.
SpecialUndelete::showHistory | ( | ) | [private] |
Definition at line 1150 of file SpecialUndelete.php.
SpecialUndelete::showList | ( | $ | result | ) | [private] |
Generic list of deleted pages.
ResultWrapper | $result |
Definition at line 820 of file SpecialUndelete.php.
SpecialUndelete::showRevision | ( | $ | timestamp | ) | [private] |
Definition at line 862 of file SpecialUndelete.php.
Definition at line 782 of file SpecialUndelete.php.
Definition at line 1541 of file SpecialUndelete.php.
SpecialUndelete::$mAction |
Definition at line 652 of file SpecialUndelete.php.
SpecialUndelete::$mAllowed |
Definition at line 653 of file SpecialUndelete.php.
SpecialUndelete::$mCanView |
Definition at line 653 of file SpecialUndelete.php.
SpecialUndelete::$mComment |
Definition at line 653 of file SpecialUndelete.php.
SpecialUndelete::$mFilename |
Definition at line 652 of file SpecialUndelete.php.
SpecialUndelete::$mInvert |
Definition at line 652 of file SpecialUndelete.php.
SpecialUndelete::$mRestore |
Definition at line 652 of file SpecialUndelete.php.
SpecialUndelete::$mTarget |
Definition at line 652 of file SpecialUndelete.php.
Title SpecialUndelete::$mTargetObj |
Definition at line 657 of file SpecialUndelete.php.
SpecialUndelete::$mTargetTimestamp |
Definition at line 653 of file SpecialUndelete.php.
SpecialUndelete::$mTimestamp |
Definition at line 652 of file SpecialUndelete.php.
SpecialUndelete::$mToken |
Definition at line 653 of file SpecialUndelete.php.