RevDel_RevisionItem Class Reference

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

Inherits RevDel_Item.

Inherited by RevDel_ArchiveItem.

List of all members.

Public Member Functions

 __construct ($list, $row)
 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.
 isDeleted ()
 isHideCurrentOp ($newBits)
 Returns true if the item is "current", and the operation to set the given bits can't be executed for that reason STUB.
 getHTML ()
 Get the HTML of the list item.

Public Attributes

 $revision

Protected Member Functions

 getRevisionLink ()
 Get the HTML link to the revision text.
 getDiffLink ()
 Get the HTML link to the diff.


Detailed Description

Item class for a revision table row.

Definition at line 1212 of file SpecialRevisiondelete.php.


Constructor & Destructor Documentation

RevDel_RevisionItem::__construct ( list,
row 
)

Parameters:
$list RevDel_List
$row DB result row

Reimplemented from RevDel_Item.

Reimplemented in RevDel_ArchiveItem.

Definition at line 1215 of file SpecialRevisiondelete.php.

References RevDel_Item::$list, and RevDel_Item::$row.


Member Function Documentation

RevDel_RevisionItem::canView (  ) 

Returns true if the current user can view the item.

Reimplemented from RevDel_Item.

Definition at line 1220 of file SpecialRevisiondelete.php.

References Revision::DELETED_RESTRICTED.

RevDel_RevisionItem::canViewContent (  ) 

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

Reimplemented from RevDel_Item.

Definition at line 1224 of file SpecialRevisiondelete.php.

References Revision::DELETED_TEXT.

Referenced by RevDel_ArchiveItem::getDiffLink(), getDiffLink(), RevDel_ArchiveItem::getRevisionLink(), and getRevisionLink().

RevDel_RevisionItem::getBits (  ) 

Get the current deletion bitfield value.

Reimplemented from RevDel_Item.

Definition at line 1228 of file SpecialRevisiondelete.php.

Referenced by RevDel_ArchiveItem::setBits(), and setBits().

RevDel_RevisionItem::getDiffLink (  )  [protected]

Get the HTML link to the diff.

Overridden by RevDel_ArchiveItem

Reimplemented in RevDel_ArchiveItem.

Definition at line 1298 of file SpecialRevisiondelete.php.

References canViewContent(), isDeleted(), and wfMsgHtml().

Referenced by getHTML().

RevDel_RevisionItem::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 1320 of file SpecialRevisiondelete.php.

References getDiffLink(), getRevisionLink(), and isDeleted().

RevDel_RevisionItem::getRevisionLink (  )  [protected]

Get the HTML link to the revision text.

Overridden by RevDel_ArchiveItem.

Reimplemented in RevDel_ArchiveItem.

Definition at line 1277 of file SpecialRevisiondelete.php.

References $wgLang, canViewContent(), and isDeleted().

Referenced by getHTML().

RevDel_RevisionItem::isDeleted (  ) 

RevDel_RevisionItem::isHideCurrentOp ( newBits  ) 

Returns true if the item is "current", and the operation to set the given bits can't be executed for that reason STUB.

Reimplemented from RevDel_Item.

Definition at line 1268 of file SpecialRevisiondelete.php.

References Revision::DELETED_TEXT, and RevDel_Item::getId().

RevDel_RevisionItem::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.

Reimplemented in RevDel_ArchiveItem.

Definition at line 1232 of file SpecialRevisiondelete.php.

References $dbw, getBits(), and wfGetDB().


Member Data Documentation

RevDel_RevisionItem::$revision

Definition at line 1213 of file SpecialRevisiondelete.php.


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