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.

Private Member Functions

 secureOperation ()
 showFile ($key)
 Show a deleted file version requested by the visitor.
 showRevs ()
 This lets a user set restrictions for live and archived revisions.
 showImages ()
 This lets a user set restrictions for archived images.
 showLogItems ()
 This lets a user set restrictions for log items.
 addUsageText ()
 buildCheckBoxes ($bitfields)
 historyLine ($rev)
 fileLine ($file)
 archivedfileLine ($file)
 logLine ($row)
 fileUserTools ($file)
 Generate a user tool link cluster if the current user is allowed to view it.
 fileComment ($file)
 Wrap and format the given file's comment block, if the current user is allowed to view it.
 submit ($request)
 success ()
 extractBitfield ($request)
 Put together a rev_deleted bitfield from the submitted checkboxes.
 save ($bitfield, $reason, $title)


Detailed Description

Definition at line 10 of file SpecialRevisiondelete.php.


Constructor & Destructor Documentation

SpecialRevisionDelete::__construct (  ) 

Definition at line 12 of file SpecialRevisiondelete.php.

References SpecialPage::includable().


Member Function Documentation

SpecialRevisionDelete::addUsageText (  )  [private]

Definition at line 541 of file SpecialRevisiondelete.php.

References $wgOut, and $wgUser.

Referenced by showImages(), showLogItems(), and showRevs().

SpecialRevisionDelete::archivedfileLine ( file  )  [private]

Parameters:
ArchivedFile $file
Returns:
string

Definition at line 645 of file SpecialRevisiondelete.php.

References $del, $file, $wgLang, File::DELETED_FILE, fileComment(), SpecialPage::getTitleFor(), wfMsg(), wfMsgExt(), and wfMsgHtml().

Referenced by showImages().

SpecialRevisionDelete::buildCheckBoxes ( bitfields  )  [private]

Parameters:
int $bitfields, aggregate bitfield of all the bitfields
Returns:
string HTML

Definition at line 553 of file SpecialRevisiondelete.php.

References $name, Xml::checkLabel(), Revision::DELETED_RESTRICTED, Xml::tags(), and wfMsg().

Referenced by showImages(), showLogItems(), and showRevs().

SpecialRevisionDelete::execute ( par  ) 

SpecialRevisionDelete::extractBitfield ( request  )  [private]

Put together a rev_deleted bitfield from the submitted checkboxes.

Parameters:
WebRequest $request
Returns:
int

Definition at line 798 of file SpecialRevisiondelete.php.

References $name.

Referenced by submit().

SpecialRevisionDelete::fileComment ( file  )  [private]

Wrap and format the given file's comment block, if the current user is allowed to view it.

Parameters:
ArchivedFile $file
Returns:
string HTML

Definition at line 729 of file SpecialRevisiondelete.php.

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

Referenced by archivedfileLine(), and fileLine().

SpecialRevisionDelete::fileLine ( file  )  [private]

Parameters:
File $file
Returns:
string

Definition at line 609 of file SpecialRevisiondelete.php.

References $del, $file, $url, $wgLang, $wgTitle, File::DELETED_FILE, fileComment(), wfMsg(), wfMsgExt(), and wfMsgHtml().

Referenced by showImages().

SpecialRevisionDelete::fileUserTools ( file  )  [private]

Generate a user tool link cluster if the current user is allowed to view it.

Parameters:
ArchivedFile $file
Returns:
string HTML

Definition at line 709 of file SpecialRevisiondelete.php.

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

SpecialRevisionDelete::historyLine ( rev  )  [private]

Parameters:
Revision $rev
Returns:
string

Definition at line 570 of file SpecialRevisiondelete.php.

References $del, $wgLang, $wgUser, Revision::DELETED_TEXT, SpecialPage::getTitleFor(), and wfMsgHtml().

Referenced by showRevs().

SpecialRevisionDelete::logLine ( row  )  [private]

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

Definition at line 809 of file SpecialRevisiondelete.php.

References $dbw, $reason, $title, Revision::DELETED_RESTRICTED, and wfGetDB().

Referenced by submit().

SpecialRevisionDelete::secureOperation (  )  [private]

SpecialRevisionDelete::showFile ( key  )  [private]

Show a deleted file version requested by the visitor.

Definition at line 165 of file SpecialRevisiondelete.php.

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

Referenced by execute().

SpecialRevisionDelete::showImages (  )  [private]

SpecialRevisionDelete::showLogItems (  )  [private]

SpecialRevisionDelete::showRevs (  )  [private]

SpecialRevisionDelete::submit ( request  )  [private]

Parameters:
WebRequest $request

Definition at line 744 of file SpecialRevisiondelete.php.

References $wgOut, $wgUser, Revision::DELETED_RESTRICTED, extractBitfield(), save(), showImages(), showRevs(), and success().

Referenced by execute().

SpecialRevisionDelete::success (  )  [private]

Definition at line 771 of file SpecialRevisiondelete.php.

References $wgOut, showImages(), showLogItems(), showRevs(), and wfMsg().

Referenced by submit().


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

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