MediaWiki  master
RevDelItem.php
Go to the documentation of this file.
1 <?php
25 abstract 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.
Definition: RevDelItem.php:25
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 ...
Definition: RevDelItem.php:33
unlock()
Unlock the item against changes outside of the DB.
Definition: RevDelItem.php:79
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.
Definition: RevDelItem.php:70
Abstract base class for revision items.
static newGood( $value=null)
Factory function for good results.
Definition: StatusValue.php:82