UndeleteForm Class Reference
[SpecialPage]

The HTML form for Special:Undelete, which allows users with the appropriate permissions to view and restore deleted content. More...

List of all members.

Public Member Functions

 UndeleteForm ($request, $par="")
 execute ()
 showSearchForm ()
 showDiff ($previousRev, $currentRev)
 Build a diff display between this and the previous either deleted or non-deleted edit.
 getPageLink ($rev, $titleObj, $ts, $sk)
 Fetch revision text link if it's available to all users.
 getFileLink ($file, $titleObj, $ts, $key, $sk)
 Fetch image view link if it's available to all users.
 getFileUser ($file, $sk)
 Fetch file's user id if it's available to this user.
 getFileComment ($file, $sk)
 Fetch file upload comment if it's available to this user.
 undelete ()

Public Attributes

 $mAction
 $mTarget
 $mTimestamp
 $mRestore
 $mInvert
 $mTargetObj
 $mTargetTimestamp
 $mAllowed
 $mComment
 $mToken

Private Member Functions

 showList ($result)
 showRevision ($timestamp)
 diffHeader ($rev, $prefix)
 showFileConfirmationForm ($key)
 Show a form confirming whether a tokenless user really wants to see a file.
 showFile ($key)
 Show a deleted file version requested by the visitor.
 showHistory ()
 formatRevisionRow ($row, $earliestLiveTime, $remaining, $sk)
 formatFileRow ($row, $sk)


Detailed Description

The HTML form for Special:Undelete, which allows users with the appropriate permissions to view and restore deleted content.

Definition at line 570 of file SpecialUndelete.php.


Member Function Documentation

UndeleteForm::diffHeader ( rev,
prefix 
) [private]

Definition at line 859 of file SpecialUndelete.php.

References $prefix, $wgLang, $wgUser, SpecialPage::getTitleFor(), wfMsgHtml(), and wfTimestamp().

Referenced by showDiff().

UndeleteForm::execute (  ) 

UndeleteForm::formatFileRow ( row,
sk 
) [private]

UndeleteForm::formatRevisionRow ( row,
earliestLiveTime,
remaining,
sk 
) [private]

UndeleteForm::getFileComment ( file,
sk 
)

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

Returns:
string

Definition at line 1253 of file SpecialUndelete.php.

References $file, File::DELETED_COMMENT, and wfMsgHtml().

Referenced by formatFileRow().

UndeleteForm::getFileLink ( file,
titleObj,
ts,
key,
sk 
)

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

Returns:
string

Definition at line 1217 of file SpecialUndelete.php.

References $file, $key, $ts, $wgLang, $wgUser, and File::DELETED_FILE.

Referenced by formatFileRow().

UndeleteForm::getFileUser ( file,
sk 
)

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

Returns:
string

Definition at line 1237 of file SpecialUndelete.php.

References $file, File::DELETED_USER, and wfMsgHtml().

Referenced by formatFileRow().

UndeleteForm::getPageLink ( rev,
titleObj,
ts,
sk 
)

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

Returns:
string

Definition at line 1199 of file SpecialUndelete.php.

References $ts, $wgLang, and Revision::DELETED_TEXT.

Referenced by formatRevisionRow().

UndeleteForm::showDiff ( previousRev,
currentRev 
)

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

Parameters:
Revision $previousRev
Revision $currentRev
Returns:
string HTML

Definition at line 832 of file SpecialUndelete.php.

References $wgOut, $wgUser, and diffHeader().

Referenced by showRevision().

UndeleteForm::showFile ( key  )  [private]

Show a deleted file version requested by the visitor.

Definition at line 918 of file SpecialUndelete.php.

References $key, $wgOut, $wgRequest, and FileStore::get().

Referenced by execute().

UndeleteForm::showFileConfirmationForm ( key  )  [private]

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

Definition at line 894 of file SpecialUndelete.php.

References $file, $key, $wgLang, $wgOut, $wgUser, SpecialPage::getTitleFor(), Xml::openElement(), Xml::submitButton(), and wfMsg().

Referenced by execute().

UndeleteForm::showHistory (  )  [private]

UndeleteForm::showList ( result  )  [private]

UndeleteForm::showRevision ( timestamp  )  [private]

UndeleteForm::showSearchForm (  ) 

UndeleteForm::undelete (  ) 

Definition at line 1264 of file SpecialUndelete.php.

References $archive, $ok, $status, $wgOut, $wgUser, wfMsg(), wfMsgHtml(), wfMsgWikiHtml(), wfReadOnly(), and wfRunHooks().

Referenced by execute().

UndeleteForm::UndeleteForm ( request,
par = "" 
)

Definition at line 574 of file SpecialUndelete.php.

References $key, $wgUser, Title::newFromURL(), and wfTimestamp().


Member Data Documentation

UndeleteForm::$mAction

Definition at line 571 of file SpecialUndelete.php.

UndeleteForm::$mAllowed

Definition at line 572 of file SpecialUndelete.php.

UndeleteForm::$mComment

Definition at line 572 of file SpecialUndelete.php.

UndeleteForm::$mInvert

Definition at line 571 of file SpecialUndelete.php.

UndeleteForm::$mRestore

Definition at line 571 of file SpecialUndelete.php.

UndeleteForm::$mTarget

Definition at line 571 of file SpecialUndelete.php.

UndeleteForm::$mTargetObj

Definition at line 571 of file SpecialUndelete.php.

UndeleteForm::$mTargetTimestamp

Definition at line 572 of file SpecialUndelete.php.

UndeleteForm::$mTimestamp

Definition at line 571 of file SpecialUndelete.php.

UndeleteForm::$mToken

Definition at line 572 of file SpecialUndelete.php.


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

Generated on Sat Sep 5 02:08:49 2009 for MediaWiki by  doxygen 1.5.9