MediaWiki REL1_32
ExternalStoreHttp.php
Go to the documentation of this file.
1<?php
30 public function fetchFromURL( $url ) {
31 return Http::get( $url, [], __METHOD__ );
32 }
33
34 public function store( $location, $data ) {
35 throw new MWException( "ExternalStoreHttp is read-only and does not support store()." );
36 }
37
38 public function isReadOnly( $location ) {
39 return true;
40 }
41}
Example class for HTTP accessible external objects.
store( $location, $data)
Insert a data item into a given location.
isReadOnly( $location)
Check if a given location is read-only.
fetchFromURL( $url)
Fetch data from given external store URL.
Accessable external objects in a particular storage medium.
static get( $url, $options=[], $caller=__METHOD__)
Simple wrapper for Http::request( 'GET' )
Definition Http.php:98
MediaWiki exception.