MediaWiki REL1_35
|
Example class for HTTP accessible external objects. More...
Public Member Functions | |
fetchFromURL ( $url) | |
Fetch data from given external store URL. | |
isReadOnly ( $location) | |
Check if a given location is read-only. | |
store ( $location, $data) | |
Insert a data item into a given location. | |
Public Member Functions inherited from ExternalStoreMedium | |
__construct (array $params) | |
batchFetchFromURLs (array $urls) | |
Fetch data from given external store URLs. | |
setLogger (LoggerInterface $logger) | |
Additional Inherited Members | |
Protected Attributes inherited from ExternalStoreMedium | |
string | $dbDomain |
Default database domain to store content under. | |
bool | $isDbDomainExplicit |
Whether this was factoried with an explicit DB domain. | |
LoggerInterface | $logger |
array | $params = [] |
Usage context options for this instance. | |
Example class for HTTP accessible external objects.
Only supports reading, not storing.
Definition at line 31 of file ExternalStoreHttp.php.
ExternalStoreHttp::fetchFromURL | ( | $url | ) |
Fetch data from given external store URL.
string | $url | An external store URL |
MWException |
Reimplemented from ExternalStoreMedium.
Definition at line 32 of file ExternalStoreHttp.php.
ExternalStoreHttp::isReadOnly | ( | $location | ) |
Check if a given location is read-only.
string | $location | The location name |
Reimplemented from ExternalStoreMedium.
Definition at line 41 of file ExternalStoreHttp.php.
ExternalStoreHttp::store | ( | $location, | |
$data | |||
) |
Insert a data item into a given location.
string | $location | The location name |
string | $data | The data item |
MWException |
Reimplemented from ExternalStoreMedium.
Definition at line 37 of file ExternalStoreHttp.php.