SpecialRevisionDelete Class Reference

Inherits UnlistedSpecialPage.

List of all members.

Public Member Functions

 __construct ()
 execute ($par)
 Default execute method Checks user permissions, calls the function given in mFunction.

Static Public Member Functions

static extractBitfield ($bitPars, $oldfield)
 Put together a rev_deleted bitfield.

Public Attributes

 $skin
 Skin object.
 $submitClicked
 True if the submit button was clicked, and the form was posted.
 $ids
 Target ID list.
 $archiveName
 Archive name, for reviewing deleted files.
 $token
 Edit token for securing image views against XSS.
 $targetObj
 Title object for target parameter.
 $typeName
 Deletion type, may be revision, archive, oldimage, filearchive, logging.
 $checks
 Array of checkbox specs (message, name, deletion bits).
 $typeInfo
 Information about the current type.
 $list
 The RevDel_List object, storing the list of items to be deleted/undeleted.

Static Public Attributes

static $allowedTypes
 Assorted information about each type, needed by the special page.
static $deprecatedTypeMap
 Type map to support old log entries.

Protected Member Functions

 showConvenienceLinks ()
 Show some useful links in the subtitle.
 getLogQueryCond ()
 Get the condition used for fetching log snippets.
 tryShowFile ($archiveName)
 Show a deleted file version requested by the visitor.
 getList ()
 Get the list object for this request.
 showForm ()
 Show a list of items that we will operate on, and show a form with checkboxes which will allow the user to choose new visibility settings.
 addUsageText ()
 Show some introductory text FIXME Wikimedia-specific policy text.
 buildCheckBoxes ()
 submit ($request)
 UI entry point for form submission.
 success ()
 Report that the submit operation succeeded.
 failure ($status)
 Report that the submit operation failed.
 extractBitParams ($request)
 Put together an array that contains -1, 0, or the *_deleted const for each bit.
 save ($bitfield, $reason, $title)
 Do the write operations.


Detailed Description

Definition at line 10 of file SpecialRevisiondelete.php.


Constructor & Destructor Documentation

SpecialRevisionDelete::__construct (  ) 

Definition at line 92 of file SpecialRevisiondelete.php.


Member Function Documentation

SpecialRevisionDelete::addUsageText (  )  [protected]

Show some introductory text FIXME Wikimedia-specific policy text.

Definition at line 428 of file SpecialRevisiondelete.php.

References $wgOut, and $wgUser.

Referenced by showForm().

SpecialRevisionDelete::buildCheckBoxes (  )  [protected]

SpecialRevisionDelete::execute ( par  ) 

static SpecialRevisionDelete::extractBitfield ( bitPars,
oldfield 
) [static]

Put together a rev_deleted bitfield.

Parameters:
$bitPars array extractBitParams() params
$oldfield int current bitfield
Returns:
array

Definition at line 578 of file SpecialRevisiondelete.php.

Referenced by buildCheckBoxes(), and RevDel_List::setVisibility().

SpecialRevisionDelete::extractBitParams ( request  )  [protected]

Put together an array that contains -1, 0, or the *_deleted const for each bit.

Parameters:
$request WebRequest
Returns:
array

Definition at line 556 of file SpecialRevisiondelete.php.

References $name, and Revision::DELETED_RESTRICTED.

Referenced by buildCheckBoxes(), and submit().

SpecialRevisionDelete::failure ( status  )  [protected]

Report that the submit operation failed.

Definition at line 544 of file SpecialRevisiondelete.php.

References $wgOut, showForm(), and wfMsg().

Referenced by submit().

SpecialRevisionDelete::getList (  )  [protected]

Get the list object for this request.

Definition at line 311 of file SpecialRevisiondelete.php.

Referenced by buildCheckBoxes(), getLogQueryCond(), save(), and showForm().

SpecialRevisionDelete::getLogQueryCond (  )  [protected]

Get the condition used for fetching log snippets.

Definition at line 239 of file SpecialRevisiondelete.php.

References getList(), and RevisionDeleter::getRelationType().

Referenced by execute().

SpecialRevisionDelete::save ( bitfield,
reason,
title 
) [protected]

Do the write operations.

Simple wrapper for RevDel_*ListsetVisibility().

Definition at line 594 of file SpecialRevisiondelete.php.

References getList().

Referenced by submit().

SpecialRevisionDelete::showConvenienceLinks (  )  [protected]

Show some useful links in the subtitle.

Definition at line 201 of file SpecialRevisiondelete.php.

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

Referenced by execute().

SpecialRevisionDelete::showForm (  )  [protected]

Show a list of items that we will operate on, and show a form with checkboxes which will allow the user to choose new visibility settings.

Definition at line 323 of file SpecialRevisiondelete.php.

References $list, $out, $title, $wgLang, $wgOut, $wgUser, addUsageText(), buildCheckBoxes(), Xml::closeElement(), Xml::fieldset(), getList(), SpecialPage::getTitle(), Xml::hidden(), Xml::input(), Xml::label(), Xml::listDropDown(), Title::makeTitle(), Xml::openElement(), Xml::submitButton(), Xml::tags(), wfMsg(), wfMsgExt(), wfMsgForContent(), and wfMsgHtml().

Referenced by execute(), failure(), and success().

SpecialRevisionDelete::submit ( request  )  [protected]

UI entry point for form submission.

Parameters:
$request WebRequest

Definition at line 497 of file SpecialRevisiondelete.php.

References $wgOut, $wgUser, Revision::DELETED_RESTRICTED, extractBitParams(), failure(), save(), success(), and wfMsgForContent().

Referenced by execute().

SpecialRevisionDelete::success (  )  [protected]

Report that the submit operation succeeded.

Definition at line 533 of file SpecialRevisiondelete.php.

References $wgOut, showForm(), and wfMsg().

Referenced by submit().

SpecialRevisionDelete::tryShowFile ( archiveName  )  [protected]

Show a deleted file version requested by the visitor.

TODO Mostly copied from Special:Undelete. Refactor.

Definition at line 253 of file SpecialRevisiondelete.php.

References $archiveName, $IP, $path, $wgLang, $wgOut, $wgRequest, $wgUser, File::DELETED_FILE, File::DELETED_RESTRICTED, SpecialPage::getTitle(), Xml::openElement(), RepoGroup::singleton(), Xml::submitButton(), wfMsg(), and wfStreamFile().

Referenced by execute().


Member Data Documentation

SpecialRevisionDelete::$allowedTypes [static]

Assorted information about each type, needed by the special page.

TODO Move some of this to the list class

Definition at line 45 of file SpecialRevisiondelete.php.

Referenced by RevisionDeleter::getRelationType().

SpecialRevisionDelete::$archiveName

Archive name, for reviewing deleted files.

Definition at line 21 of file SpecialRevisiondelete.php.

Referenced by tryShowFile().

SpecialRevisionDelete::$checks

Array of checkbox specs (message, name, deletion bits).

Definition at line 33 of file SpecialRevisiondelete.php.

SpecialRevisionDelete::$deprecatedTypeMap [static]

Initial value:

 array(
                'oldid' => 'revision',
                'artimestamp' => 'archive',
                'oldimage' => 'oldimage',
                'fileid' => 'filearchive',
                'logid' => 'logging',
        )
Type map to support old log entries.

Definition at line 84 of file SpecialRevisiondelete.php.

Referenced by RevisionDeleter::getRelationType().

SpecialRevisionDelete::$ids

Target ID list.

Definition at line 18 of file SpecialRevisiondelete.php.

Referenced by execute().

SpecialRevisionDelete::$list

The RevDel_List object, storing the list of items to be deleted/undeleted.

Definition at line 39 of file SpecialRevisiondelete.php.

Referenced by buildCheckBoxes(), and showForm().

SpecialRevisionDelete::$skin

Skin object.

Definition at line 12 of file SpecialRevisiondelete.php.

SpecialRevisionDelete::$submitClicked

True if the submit button was clicked, and the form was posted.

Definition at line 15 of file SpecialRevisiondelete.php.

SpecialRevisionDelete::$targetObj

Title object for target parameter.

Definition at line 27 of file SpecialRevisiondelete.php.

SpecialRevisionDelete::$token

Edit token for securing image views against XSS.

Definition at line 24 of file SpecialRevisiondelete.php.

SpecialRevisionDelete::$typeInfo

Information about the current type.

Definition at line 36 of file SpecialRevisiondelete.php.

SpecialRevisionDelete::$typeName

Deletion type, may be revision, archive, oldimage, filearchive, logging.

Definition at line 30 of file SpecialRevisiondelete.php.


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

Generated on Sat Apr 30 22:57:49 2011 for MediaWiki by  doxygen 1.5.9