X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=blobdiff_plain;f=includes%2Fexternalstore%2FExternalStoreHttp.php;h=879686f724c66ba97a908ec06459a4de3f681f7b;hb=199f9fc7085ac2aa7a451e5634a6f281db6956d6;hp=8e1e49fa60f91fc5cff90a07df982a69c9c15aef;hpb=7babd362babcbf7f20adb8e12edb4f4bc1d4249f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/externalstore/ExternalStoreHttp.php b/includes/externalstore/ExternalStoreHttp.php index 8e1e49fa60..879686f724 100644 --- a/includes/externalstore/ExternalStoreHttp.php +++ b/includes/externalstore/ExternalStoreHttp.php @@ -21,30 +21,21 @@ */ /** - * 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; + } }