Add ExternalStoreMedium::isReadOnly() method
[lhc/web/wiklou.git] / includes / externalstore / ExternalStoreMedium.php
index 6cfa083..f1eaa93 100644 (file)
@@ -76,4 +76,15 @@ abstract class ExternalStoreMedium {
         * @throws MWException
         */
        abstract public function store( $location, $data );
+
+       /**
+        * Check if a given location is read-only
+        *
+        * @param string $location The location name
+        * @return bool Whether this location is read-only
+        * @since 1.31
+        */
+       public function isReadOnly( $location ) {
+               return false;
+       }
 }