Merge "Show a warning in edit preview when a template loop is detected"
[lhc/web/wiklou.git] / includes / revisiondelete / RevDelItem.php
index dba368d..bf97bd4 100644 (file)
@@ -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();
+       }
 }