MediaWiki  REL1_20
SpecialUndelete Class Reference

Special page allowing users with the appropriate permissions to view and restore deleted content. More...

Inheritance diagram for SpecialUndelete:
Collaboration diagram for SpecialUndelete:

List of all members.

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

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)

Detailed Description

Special page allowing users with the appropriate permissions to view and restore deleted content.

Definition at line 583 of file SpecialUndelete.php.


Constructor & Destructor Documentation

Definition at line 591 of file SpecialUndelete.php.


Member Function Documentation

SpecialUndelete::diffHeader ( rev,
prefix 
) [private]
Parameters:
$revRevision
$prefix
Returns:
string

Definition at line 935 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

Parameters:
$subPagestring|null

Reimplemented from SpecialPage.

Definition at line 657 of file SpecialUndelete.php.

SpecialUndelete::formatFileRow ( row) [private]

Definition at line 1242 of file SpecialUndelete.php.

SpecialUndelete::formatRevisionRow ( row,
earliestLiveTime,
remaining 
) [private]

Definition at line 1179 of file SpecialUndelete.php.

Fetch file upload comment if it's available to this user.

Parameters:
$fileFile
Returns:
String: HTML fragment

Definition at line 1372 of file SpecialUndelete.php.

SpecialUndelete::getFileLink ( file,
titleObj,
ts,
key 
)

Fetch image view link if it's available to all users.

Parameters:
$fileFile
$titleObjTitle
$tsstring A timestamp
$keyString: a storage key
Returns:
String: HTML fragment

Definition at line 1323 of file SpecialUndelete.php.

Fetch file's user id if it's available to this user.

Parameters:
$fileFile
Returns:
String: HTML fragment

Definition at line 1353 of file SpecialUndelete.php.

SpecialUndelete::getPageLink ( rev,
titleObj,
ts 
)

Fetch revision text link if it's available to all users.

Parameters:
$revRevision
$titleObjTitle
$tsstring Timestamp
Returns:
string

Definition at line 1290 of file SpecialUndelete.php.

Definition at line 595 of file SpecialUndelete.php.

SpecialUndelete::showDiff ( previousRev,
currentRev 
)

Build a diff display between this and the previous either deleted or non-deleted edit.

Parameters:
$previousRevRevision
$currentRevRevision
Returns:
String: HTML

Definition at line 904 of file SpecialUndelete.php.

SpecialUndelete::showFile ( key) [private]

Show a deleted file version requested by the visitor.

Definition at line 1005 of file SpecialUndelete.php.

Show a form confirming whether a tokenless user really wants to see a file.

Definition at line 979 of file SpecialUndelete.php.

Definition at line 1022 of file SpecialUndelete.php.

SpecialUndelete::showList ( result) [private]

Generic list of deleted pages.

Parameters:
$resultResultWrapper
Returns:
bool

Definition at line 744 of file SpecialUndelete.php.

SpecialUndelete::showRevision ( timestamp) [private]

Definition at line 779 of file SpecialUndelete.php.

Definition at line 711 of file SpecialUndelete.php.

Definition at line 1385 of file SpecialUndelete.php.


Member Data Documentation

SpecialUndelete::$mAction

Definition at line 584 of file SpecialUndelete.php.

SpecialUndelete::$mAllowed

Definition at line 585 of file SpecialUndelete.php.

SpecialUndelete::$mCanView

Definition at line 585 of file SpecialUndelete.php.

SpecialUndelete::$mComment

Definition at line 585 of file SpecialUndelete.php.

SpecialUndelete::$mFilename

Definition at line 584 of file SpecialUndelete.php.

SpecialUndelete::$mInvert

Definition at line 584 of file SpecialUndelete.php.

SpecialUndelete::$mRestore

Definition at line 584 of file SpecialUndelete.php.

SpecialUndelete::$mTarget

Definition at line 584 of file SpecialUndelete.php.

Title SpecialUndelete::$mTargetObj

Definition at line 589 of file SpecialUndelete.php.

SpecialUndelete::$mTargetTimestamp

Definition at line 585 of file SpecialUndelete.php.

SpecialUndelete::$mTimestamp

Definition at line 584 of file SpecialUndelete.php.

SpecialUndelete::$mToken

Definition at line 585 of file SpecialUndelete.php.


The documentation for this class was generated from the following file: