MediaWiki
REL1_23
|
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 () | |
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) | |
Private Attributes | |
$mAction | |
$mAllowed | |
$mCanView | |
$mComment | |
$mFilename | |
$mInvert | |
$mRestore | |
$mTarget | |
Title | $mTargetObj |
* | |
$mTargetTimestamp | |
$mTimestamp | |
$mToken |
Special page allowing users with the appropriate permissions to view and restore deleted content.
Definition at line 673 of file SpecialUndelete.php.
Definition at line 688 of file SpecialUndelete.php.
Referenced by loadRequest().
SpecialUndelete::diffHeader | ( | $ | rev, |
$ | prefix | ||
) | [private] |
Revision | $rev | |
string | $prefix |
Definition at line 1084 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
string | null | $subPage |
Reimplemented from SpecialPage.
Definition at line 757 of file SpecialUndelete.php.
SpecialUndelete::formatFileRow | ( | $ | row | ) | [private] |
Definition at line 1456 of file SpecialUndelete.php.
SpecialUndelete::formatRevisionRow | ( | $ | row, |
$ | earliestLiveTime, | ||
$ | remaining | ||
) | [private] |
Definition at line 1362 of file SpecialUndelete.php.
SpecialUndelete::getFileComment | ( | $ | file | ) |
Fetch file upload comment if it's available to this user.
File | ArchivedFile | $file |
Definition at line 1597 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 1542 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 1574 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 1670 of file SpecialUndelete.php.
SpecialUndelete::getPageLink | ( | $ | rev, |
$ | titleObj, | ||
$ | ts | ||
) |
Fetch revision text link if it's available to all users.
Definition at line 1507 of file SpecialUndelete.php.
SpecialUndelete::loadRequest | ( | $ | par | ) |
Definition at line 692 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 1057 of file SpecialUndelete.php.
SpecialUndelete::showFile | ( | $ | key | ) | [private] |
Show a deleted file version requested by the visitor.
Definition at line 1174 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 1147 of file SpecialUndelete.php.
References $file, $out, $user, array(), SpecialPage\getLanguage(), SpecialPage\getOutput(), SpecialPage\getPageTitle(), SpecialPage\getUser(), SpecialPage\msg(), Xml\openElement(), Xml\submitButton(), and text.
SpecialUndelete::showHistory | ( | ) | [private] |
Definition at line 1191 of file SpecialUndelete.php.
SpecialUndelete::showList | ( | $ | result | ) | [private] |
Generic list of deleted pages.
ResultWrapper | $result |
Definition at line 850 of file SpecialUndelete.php.
SpecialUndelete::showRevision | ( | $ | timestamp | ) | [private] |
Definition at line 893 of file SpecialUndelete.php.
Definition at line 812 of file SpecialUndelete.php.
Definition at line 1612 of file SpecialUndelete.php.
SpecialUndelete::$mAction [private] |
Definition at line 674 of file SpecialUndelete.php.
SpecialUndelete::$mAllowed [private] |
Definition at line 681 of file SpecialUndelete.php.
SpecialUndelete::$mCanView [private] |
Definition at line 682 of file SpecialUndelete.php.
SpecialUndelete::$mComment [private] |
Definition at line 683 of file SpecialUndelete.php.
SpecialUndelete::$mFilename [private] |
Definition at line 679 of file SpecialUndelete.php.
SpecialUndelete::$mInvert [private] |
Definition at line 678 of file SpecialUndelete.php.
SpecialUndelete::$mRestore [private] |
Definition at line 677 of file SpecialUndelete.php.
SpecialUndelete::$mTarget [private] |
Definition at line 675 of file SpecialUndelete.php.
Title SpecialUndelete::$mTargetObj [private] |
*
Definition at line 686 of file SpecialUndelete.php.
SpecialUndelete::$mTargetTimestamp [private] |
Definition at line 680 of file SpecialUndelete.php.
SpecialUndelete::$mTimestamp [private] |
Definition at line 676 of file SpecialUndelete.php.
SpecialUndelete::$mToken [private] |
Definition at line 684 of file SpecialUndelete.php.