MediaWiki master
RevDelItem.php
Go to the documentation of this file.
1<?php
25
29abstract class RevDelItem extends RevisionItemBase {
37 public function isHideCurrentOp( $newBits ) {
38 return false;
39 }
40
46 abstract public function getBits();
47
59 abstract public function setBits( $newBits );
60
67 abstract public function getApiData( ApiResult $result );
68
74 public function lock() {
75 return Status::newGood();
76 }
77
83 public function unlock() {
84 return Status::newGood();
85 }
86}
This class represents the result of the API operations.
Definition ApiResult.php:43
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.