MediaWiki  1.30.2
ExternalStoreHttp Class Reference

Example class for HTTP accessable external objects. More...

Inheritance diagram for ExternalStoreHttp:
Collaboration diagram for ExternalStoreHttp:

Public Member Functions

 fetchFromURL ( $url)
 
 store ( $cluster, $data)
 
- Public Member Functions inherited from ExternalStoreMedium
 __construct (array $params=[])
 
 batchFetchFromURLs (array $urls)
 Fetch data from given external store URLs. More...
 

Additional Inherited Members

- Protected Attributes inherited from ExternalStoreMedium
array $params = []
 

Detailed Description

Example class for HTTP accessable external objects.

Only supports reading, not storing.

Definition at line 29 of file ExternalStoreHttp.php.

Member Function Documentation

◆ fetchFromURL()

ExternalStoreHttp::fetchFromURL (   $url)
See also
ExternalStoreMedium::fetchFromURL()
Parameters
string$url
Returns
string|bool
Exceptions
MWException

Reimplemented from ExternalStoreMedium.

Definition at line 36 of file ExternalStoreHttp.php.

References Http\get().

◆ store()

ExternalStoreHttp::store (   $cluster,
  $data 
)
See also
ExternalStoreMedium::store()
Parameters
string$cluster
string$data
Returns
string|bool
Exceptions
MWException

Reimplemented from ExternalStoreMedium.

Definition at line 47 of file ExternalStoreHttp.php.


The documentation for this class was generated from the following file: