MediaWiki  1.34.0
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 }
RevDelItem\getBits
getBits()
Get the current deletion bitfield value.
RevisionItemBase
Abstract base class for revision items.
Definition: RevisionItemBase.php:28
RevDelItem\unlock
unlock()
Unlock the item against changes outside of the DB.
Definition: RevDelItem.php:79
ApiResult
This class represents the result of the API operations.
Definition: ApiResult.php:35
RevDelItem\lock
lock()
Lock the item against changes outside of the DB.
Definition: RevDelItem.php:70
RevDelItem\setBits
setBits( $newBits)
Set the visibility of the item.
StatusValue\newGood
static newGood( $value=null)
Factory function for good results.
Definition: StatusValue.php:81
RevDelItem\isHideCurrentOp
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
RevDelItem\getApiData
getApiData(ApiResult $result)
Get the return information about the revision for the API.
RevDelItem
Abstract base class for deletable items.
Definition: RevDelItem.php:25