X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Frevisiondelete%2FRevDelItem.php;h=47620852892e86b69552034e89ba713d4ada8fcd;hb=2aed14b6867314ef9f08d09cc2dc502f7dddb050;hp=ebdbf3a8ac58f5f58aa55ccef347926d471bcbef;hpb=253dbff3224d38c7af0986f949f9b248a3d4e0dc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/revisiondelete/RevDelItem.php b/includes/revisiondelete/RevDelItem.php index ebdbf3a8ac..4762085289 100644 --- a/includes/revisiondelete/RevDelItem.php +++ b/includes/revisiondelete/RevDelItem.php @@ -36,6 +36,8 @@ abstract class RevDelItem extends RevisionItemBase { /** * Get the current deletion bitfield value + * + * @return int */ abstract public function getBits(); @@ -55,8 +57,26 @@ abstract class RevDelItem extends RevisionItemBase { /** * Get the return information about the revision for the API * @since 1.23 - * @param ApiResult $result API result object + * @param ApiResult $result * @return array Data for the API result */ abstract public function getApiData( ApiResult $result ); + + /** + * Lock the item against changes outside of the DB + * @return Status + * @since 1.28 + */ + public function lock() { + return Status::newGood(); + } + + /** + * Unlock the item against changes outside of the DB + * @return Status + * @since 1.28 + */ + public function unlock() { + return Status::newGood(); + } }