MediaWiki
REL1_24
|
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. | |
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 () | |
userCanExecute (User $user) | |
Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction). | |
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) | |
isAllowed ($permission, User $user=null) | |
Checks whether a user is allowed the permission for the specific title if one is set. | |
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 661 of file SpecialUndelete.php.
Definition at line 676 of file SpecialUndelete.php.
Referenced by loadRequest().
SpecialUndelete::diffHeader | ( | $ | rev, |
$ | prefix | ||
) | [private] |
Revision | $rev | |
string | $prefix |
Definition at line 1093 of file SpecialUndelete.php.
SpecialUndelete::execute | ( | $ | subPage | ) |
Default execute method Checks user permissions.
This must be overridden by subclasses; it will be made abstract in a future version
string | null | $subPage |
Reimplemented from SpecialPage.
Definition at line 766 of file SpecialUndelete.php.
References isAllowed().
SpecialUndelete::formatFileRow | ( | $ | row | ) | [private] |
Definition at line 1467 of file SpecialUndelete.php.
SpecialUndelete::formatRevisionRow | ( | $ | row, |
$ | earliestLiveTime, | ||
$ | remaining | ||
) | [private] |
Definition at line 1373 of file SpecialUndelete.php.
SpecialUndelete::getFileComment | ( | $ | file | ) |
Fetch file upload comment if it's available to this user.
File | ArchivedFile | $file |
Definition at line 1610 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 1555 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 1587 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 1681 of file SpecialUndelete.php.
SpecialUndelete::getPageLink | ( | $ | rev, |
$ | titleObj, | ||
$ | ts | ||
) |
Fetch revision text link if it's available to all users.
Definition at line 1520 of file SpecialUndelete.php.
SpecialUndelete::isAllowed | ( | $ | permission, |
User $ | user = null |
||
) | [private] |
Checks whether a user is allowed the permission for the specific title if one is set.
string | $permission | |
User | $user |
Definition at line 753 of file SpecialUndelete.php.
Referenced by execute().
SpecialUndelete::loadRequest | ( | $ | par | ) |
Definition at line 680 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 1066 of file SpecialUndelete.php.
SpecialUndelete::showFile | ( | $ | key | ) | [private] |
Show a deleted file version requested by the visitor.
string | $key |
Definition at line 1185 of file SpecialUndelete.php.
References $response, SpecialPage\getOutput(), and SpecialPage\getRequest().
SpecialUndelete::showFileConfirmationForm | ( | $ | key | ) | [private] |
Show a form confirming whether a tokenless user really wants to see a file.
string | $key |
Definition at line 1157 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 1202 of file SpecialUndelete.php.
SpecialUndelete::showList | ( | $ | result | ) | [private] |
Generic list of deleted pages.
ResultWrapper | $result |
Definition at line 857 of file SpecialUndelete.php.
SpecialUndelete::showRevision | ( | $ | timestamp | ) | [private] |
Definition at line 900 of file SpecialUndelete.php.
Definition at line 821 of file SpecialUndelete.php.
Definition at line 1625 of file SpecialUndelete.php.
SpecialUndelete::userCanExecute | ( | User $ | user | ) |
Checks if the given user (identified by an object) can execute this special page (as defined by $mRestriction).
Can be overridden by sub- classes with more complicated permissions schemes.
User | $user | The user to check |
Reimplemented from SpecialPage.
Definition at line 762 of file SpecialUndelete.php.
SpecialUndelete::$mAction [private] |
Definition at line 662 of file SpecialUndelete.php.
SpecialUndelete::$mAllowed [private] |
Definition at line 669 of file SpecialUndelete.php.
SpecialUndelete::$mCanView [private] |
Definition at line 670 of file SpecialUndelete.php.
SpecialUndelete::$mComment [private] |
Definition at line 671 of file SpecialUndelete.php.
SpecialUndelete::$mFilename [private] |
Definition at line 667 of file SpecialUndelete.php.
SpecialUndelete::$mInvert [private] |
Definition at line 666 of file SpecialUndelete.php.
SpecialUndelete::$mRestore [private] |
Definition at line 665 of file SpecialUndelete.php.
SpecialUndelete::$mTarget [private] |
Definition at line 663 of file SpecialUndelete.php.
Title SpecialUndelete::$mTargetObj [private] |
*
Definition at line 674 of file SpecialUndelete.php.
SpecialUndelete::$mTargetTimestamp [private] |
Definition at line 668 of file SpecialUndelete.php.
SpecialUndelete::$mTimestamp [private] |
Definition at line 664 of file SpecialUndelete.php.
SpecialUndelete::$mToken [private] |
Definition at line 672 of file SpecialUndelete.php.