MediaWiki
REL1_22
|
Abstract base class for deletable items. More...
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. |
Abstract base class for deletable items.
Definition at line 301 of file RevisionDeleteAbstracts.php.
RevDel_Item::getBits | ( | ) | [abstract] |
Get the current deletion bitfield value.
Reimplemented in RevDel_LogItem, RevDel_FileItem, and RevDel_RevisionItem.
RevDel_Item::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 in RevDel_RevisionItem.
Definition at line 308 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.
Reimplemented in RevDel_LogItem, RevDel_ArchivedFileItem, RevDel_FileItem, RevDel_ArchivedRevisionItem, RevDel_ArchiveItem, and RevDel_RevisionItem.