RevDel_LogItem Class Reference

Item class for a logging table row. More...

Inherits RevDel_Item.

List of all members.

Public Member Functions

 canView ()
 Returns true if the current user can view the item.
 canViewContent ()
 Returns true if the current user can view the item text/file.
 getBits ()
 Get the current deletion bitfield value.
 setBits ($bits)
 Set the visibility of the item.
 getHTML ()
 Get the HTML of the list item.


Detailed Description

Item class for a logging table row.

Definition at line 1774 of file SpecialRevisiondelete.php.


Member Function Documentation

RevDel_LogItem::canView (  ) 

Returns true if the current user can view the item.

Reimplemented from RevDel_Item.

Definition at line 1775 of file SpecialRevisiondelete.php.

References Revision::DELETED_RESTRICTED, and LogEventsList::userCan().

Referenced by getHTML().

RevDel_LogItem::canViewContent (  ) 

Returns true if the current user can view the item text/file.

Reimplemented from RevDel_Item.

Definition at line 1779 of file SpecialRevisiondelete.php.

RevDel_LogItem::getBits (  ) 

Get the current deletion bitfield value.

Reimplemented from RevDel_Item.

Definition at line 1783 of file SpecialRevisiondelete.php.

RevDel_LogItem::getHTML (  ) 

Get the HTML of the list item.

Should be include tags. This is used to show the list in HTML form, by the special page.

Reimplemented from RevDel_Item.

Definition at line 1811 of file SpecialRevisiondelete.php.

References $action, $title, $wgLang, LogPage::actionText(), canView(), LogPage::DELETED_ACTION, LogPage::DELETED_COMMENT, LogPage::DELETED_USER, LogPage::extractParams(), SpecialPage::getTitleFor(), LogEventsList::isDeleted(), Title::makeTitle(), and wfMsgHtml().

RevDel_LogItem::setBits ( newBits  ) 

Set the visibility of the item.

This should do any necessary DB queries.

The DB update query should have a condition which forces it to only update if the value in the DB matches the value fetched earlier with the SELECT. If the update fails because it did not match, the function should return false. This prevents concurrency problems.

Returns:
boolean success

Reimplemented from RevDel_Item.

Definition at line 1787 of file SpecialRevisiondelete.php.

References $dbw, and wfGetDB().


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

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