MediaWiki REL1_34
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 throw new MWException( "ExternalStoreHttp is read-only and does not support store()." );
39 }
40
41 public function isReadOnly( $location ) {
42 return true;
43 }
44}
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.