MediaWiki REL1_33
|
File backend accessible external objects. More...
Public Member Functions | |
batchFetchFromURLs (array $urls) | |
Fetch data from given external store URLs. | |
fetchFromURL ( $url) | |
The URL returned is of the form of the form mwstore://backend/container/wiki/id. | |
isReadOnly ( $backend) | |
Check if a given location is read-only. | |
store ( $backend, $data) | |
Insert a data item into a given location. | |
Public Member Functions inherited from ExternalStoreMedium | |
__construct (array $params=[]) | |
Additional Inherited Members | |
Protected Attributes inherited from ExternalStoreMedium | |
array | $params = [] |
File backend accessible external objects.
In this system, each store "location" maps to the name of a file backend. The file backends must be defined in $wgFileBackends and must be global and fully qualified with a global "wikiId" prefix in the configuration.
Definition at line 33 of file ExternalStoreMwstore.php.
ExternalStoreMwstore::batchFetchFromURLs | ( | array | $urls | ) |
Fetch data from given external store URLs.
The URL returned is of the form of the form mwstore://backend/container/wiki/id
array | $urls | An array of external store URLs |
Reimplemented from ExternalStoreMedium.
Definition at line 59 of file ExternalStoreMwstore.php.
References $urls, and(), and FileBackendGroup\singleton().
ExternalStoreMwstore::fetchFromURL | ( | $url | ) |
The URL returned is of the form of the form mwstore://backend/container/wiki/id.
string | $url |
Reimplemented from ExternalStoreMedium.
Definition at line 41 of file ExternalStoreMwstore.php.
References FileBackendGroup\singleton().
ExternalStoreMwstore::isReadOnly | ( | $location | ) |
Check if a given location is read-only.
string | $location | The location name |
Reimplemented from ExternalStoreMedium.
Definition at line 101 of file ExternalStoreMwstore.php.
References FileBackendGroup\singleton().
ExternalStoreMwstore::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 76 of file ExternalStoreMwstore.php.
References $data, and(), UIDGenerator\newTimestampedUID128(), FileBackendGroup\singleton(), and wfWikiID().