MediaWiki
1.34.0
|
File backend accessible external objects. More...
Public Member Functions | |||||||||
__construct (array $params) | |||||||||
batchFetchFromURLs (array $urls) | |||||||||
Fetch data from given external store URLs. More... | |||||||||
fetchFromURL ( $url) | |||||||||
The URL returned is of the form of the form mwstore://backend/container/wiki/id. More... | |||||||||
isReadOnly ( $backend) | |||||||||
Check if a given location is read-only. More... | |||||||||
store ( $backend, $data) | |||||||||
Insert a data item into a given location.
| |||||||||
Public Member Functions inherited from ExternalStoreMedium | |||||||||
setLogger (LoggerInterface $logger) | |||||||||
Private Attributes | |
FileBackendGroup | $fbGroup |
Additional Inherited Members | |
Protected Attributes inherited from ExternalStoreMedium | |
string | $dbDomain |
Default database domain to store content under. More... | |
bool | $isDbDomainExplicit |
Whether this was factoried with an explicit DB domain. More... | |
LoggerInterface | $logger |
array | $params = [] |
Usage context options for this instance. More... | |
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::__construct | ( | array | $params | ) |
array | $params | Additional parameters include:
|
Reimplemented from ExternalStoreMedium.
Definition at line 42 of file ExternalStoreMwstore.php.
References ExternalStoreMedium\$params.
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 75 of file ExternalStoreMwstore.php.
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 57 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 122 of file ExternalStoreMwstore.php.
ExternalStoreMwstore::store | ( | $backend, | |
$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 95 of file ExternalStoreMwstore.php.
References $status, WikiMap\getWikiIdFromDbDomain(), and UIDGenerator\newTimestampedUID128().
|
private |
Definition at line 35 of file ExternalStoreMwstore.php.