MediaWiki  REL1_19
RevDel_Item Class Reference

Abstract base class for deletable items. More...

Inheritance diagram for RevDel_Item:
Collaboration diagram for RevDel_Item:

List of all members.

Public Member Functions

 getBits ()
 Get the current deletion bitfield value.
 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.
 setBits ($newBits)
 Set the visibility of the item.

Detailed Description

Abstract base class for deletable items.

Definition at line 245 of file RevisionDeleteAbstracts.php.


Member Function Documentation

RevDel_Item::getBits ( ) [abstract]

Get the current deletion bitfield value.

Reimplemented in RevDel_LogItem, RevDel_FileItem, and RevDel_RevisionItem.

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

Reimplemented in RevDel_RevisionItem.

Definition at line 251 of file RevisionDeleteAbstracts.php.

RevDel_Item::setBits ( newBits) [abstract]

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 in RevDel_LogItem, RevDel_ArchivedFileItem, RevDel_FileItem, RevDel_ArchivedRevisionItem, RevDel_ArchiveItem, and RevDel_RevisionItem.


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