MediaWiki REL1_39
|
External storage in a FileBackend. More...
Public Member Functions | |
__construct (array $params) | |
batchFetchFromURLs (array $urls) | |
Fetch data from given external store URLs. | |
fetchFromURL ( $url) | |
Fetch data from a given external store URL. | |
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 | |
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. | |
External storage in a FileBackend.
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 32 of file ExternalStoreMwstore.php.
ExternalStoreMwstore::__construct | ( | array | $params | ) |
array | $params | Additional parameters include:
|
Reimplemented from ExternalStoreMedium.
Definition at line 41 of file ExternalStoreMwstore.php.
References ExternalStoreMedium\$params.
ExternalStoreMwstore::batchFetchFromURLs | ( | array | $urls | ) |
Fetch data from given external store URLs.
The URLs are in the form of mwstore://backend/container/wiki/id
array | $urls | An array of external store URLs |
Reimplemented from ExternalStoreMedium.
Definition at line 74 of file ExternalStoreMwstore.php.
ExternalStoreMwstore::fetchFromURL | ( | $url | ) |
Fetch data from a given external store URL.
string | $url | An external store URL in the form of mwstore://backend/container/wiki/id |
Reimplemented from ExternalStoreMedium.
Definition at line 56 of file ExternalStoreMwstore.php.
ExternalStoreMwstore::isReadOnly | ( | $location | ) |
Check if a given location is read-only.
string | $location | The location name |
Reimplemented from ExternalStoreMedium.
Definition at line 118 of file ExternalStoreMwstore.php.
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 91 of file ExternalStoreMwstore.php.
References UIDGenerator\newTimestampedUID128().