MediaWiki
REL1_32
ExternalStoreHttp.php
Go to the documentation of this file.
1
<?php
29
class
ExternalStoreHttp
extends
ExternalStoreMedium
{
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
}
ExternalStoreHttp
Example class for HTTP accessible external objects.
Definition
ExternalStoreHttp.php:29
ExternalStoreHttp\store
store( $location, $data)
Insert a data item into a given location.
Definition
ExternalStoreHttp.php:34
ExternalStoreHttp\isReadOnly
isReadOnly( $location)
Check if a given location is read-only.
Definition
ExternalStoreHttp.php:38
ExternalStoreHttp\fetchFromURL
fetchFromURL( $url)
Fetch data from given external store URL.
Definition
ExternalStoreHttp.php:30
ExternalStoreMedium
Accessable external objects in a particular storage medium.
Definition
ExternalStoreMedium.php:30
Http\get
static get( $url, $options=[], $caller=__METHOD__)
Simple wrapper for Http::request( 'GET' )
Definition
Http.php:98
MWException
MediaWiki exception.
Definition
MWException.php:26
includes
externalstore
ExternalStoreHttp.php
Generated on Mon Nov 25 2024 15:57:03 for MediaWiki by
1.10.0