MediaWiki REL1_37
ExternalStoreHttp.php
Go to the documentation of this file.
1<?php
24
32 public function fetchFromURL( $url ) {
33 return MediaWikiServices::getInstance()->getHttpRequestFactory()->
34 get( $url, [], __METHOD__ );
35 }
36
37 public function store( $location, $data ) {
38 // @phan-suppress-previous-line PhanPluginNeverReturnMethod
39 throw new MWException( "ExternalStoreHttp is read-only and does not support store()." );
40 }
41
42 public function isReadOnly( $location ) {
43 return true;
44 }
45}
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.
Key/value blob storage for a particular storage medium type (e.g.
MediaWiki exception.
MediaWikiServices is the service locator for the application scope of MediaWiki.