*/
/**
- * File backend accessable external objects.
+ * File backend accessible external objects.
*
* In this system, each store "location" maps to the name of a file backend.
* The file backends must be defined in $wgFileBackends and must be global
* The URL returned is of the form of the form mwstore://backend/container/wiki/id
*
* @see ExternalStoreMedium::fetchFromURL()
+ * @param string $url
+ * @return bool
*/
public function fetchFromURL( $url ) {
$be = FileBackendGroup::singleton()->backendFromPath( $url );
return $blobs;
}
- /**
- * @see ExternalStoreMedium::store()
- */
public function store( $backend, $data ) {
$be = FileBackendGroup::singleton()->get( $backend );
if ( $be instanceof FileBackend ) {
return false;
}
+
+ public function isReadOnly( $backend ) {
+ $be = FileBackendGroup::singleton()->get( $backend );
+
+ return $be ? $be->isReadOnly() : false;
+ }
}