*/
/**
- * Example class for HTTP accessable external objects.
+ * Example class for HTTP accessible external objects.
* Only supports reading, not storing.
*
* @ingroup ExternalStorage
*/
class ExternalStoreHttp extends ExternalStoreMedium {
- /**
- * @see ExternalStoreMedium::fetchFromURL()
- * @param string $url
- * @return string|bool
- * @throws MWException
- */
public function fetchFromURL( $url ) {
return Http::get( $url, [], __METHOD__ );
}
- /**
- * @see ExternalStoreMedium::store()
- * @param string $cluster
- * @param string $data
- * @return string|bool
- * @throws MWException
- */
- public function store( $cluster, $data ) {
+ public function store( $location, $data ) {
throw new MWException( "ExternalStoreHttp is read-only and does not support store()." );
}
+
+ public function isReadOnly( $location ) {
+ return true;
+ }
}