MediaWiki master
RevDelItem.php
Go to the documentation of this file.
1<?php
24
28abstract class RevDelItem extends RevisionItemBase {
36 public function isHideCurrentOp( $newBits ) {
37 return false;
38 }
39
45 abstract public function getBits();
46
58 abstract public function setBits( $newBits );
59
66 abstract public function getApiData( ApiResult $result );
67
73 public function lock() {
74 return Status::newGood();
75 }
76
82 public function unlock() {
83 return Status::newGood();
84 }
85}
This class represents the result of the API operations.
Definition ApiResult.php:35
Abstract base class for revision items.
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition Status.php:54
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.