MediaWiki REL1_39
RevDelItem.php
Go to the documentation of this file.
1<?php
25abstract class RevDelItem extends RevisionItemBase {
33 public function isHideCurrentOp( $newBits ) {
34 return false;
35 }
36
42 abstract public function getBits();
43
55 abstract public function setBits( $newBits );
56
63 abstract public function getApiData( ApiResult $result );
64
70 public function lock() {
71 return Status::newGood();
72 }
73
79 public function unlock() {
80 return Status::newGood();
81 }
82}
This class represents the result of the API operations.
Definition ApiResult.php:35
Abstract base class for deletable items.
setBits( $newBits)
Set the visibility of the item.
isHideCurrentOp( $newBits)
Returns true if the item is "current", and the operation to set the given bits can't be executed for ...
unlock()
Unlock the item against changes outside of the DB.
getBits()
Get the current deletion bitfield value.
getApiData(ApiResult $result)
Get the return information about the revision for the API.
lock()
Lock the item against changes outside of the DB.
Abstract base class for revision items.