X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Frevisiondelete%2FRevDelItem.php;h=bf97bd4100a4992065efb1bce95ebb722d2be25c;hp=dba368d8490013f1510aaf4404ee97b5c7fef881;hb=2480aae0c97d822e10b50619e7b48b25c45af073;hpb=e19a52f2f5376b08c303d31bdcfec56da560f2b0 diff --git a/includes/revisiondelete/RevDelItem.php b/includes/revisiondelete/RevDelItem.php index dba368d849..bf97bd4100 100644 --- a/includes/revisiondelete/RevDelItem.php +++ b/includes/revisiondelete/RevDelItem.php @@ -37,7 +37,7 @@ abstract class RevDelItem extends RevisionItemBase { /** * Get the current deletion bitfield value * - * @return integer + * @return int */ abstract public function getBits(); @@ -61,4 +61,22 @@ abstract class RevDelItem extends RevisionItemBase { * @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(); + } }