MediaWiki REL1_34
|
Key/value blob storage for a particular storage medium type (e.g. More...
Public Member Functions | |
__construct (array $params) | |
batchFetchFromURLs (array $urls) | |
Fetch data from given external store URLs. | |
fetchFromURL ( $url) | |
Fetch data from given external store URL. | |
isReadOnly ( $location) | |
Check if a given location is read-only. | |
setLogger (LoggerInterface $logger) | |
store ( $location, $data) | |
Insert a data item into a given location. | |
Protected Attributes | |
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. | |
Key/value blob storage for a particular storage medium type (e.g.
RDBMs, files)
There can be multiple "locations" for a storage medium type (e.g. DB clusters, filesystems). Blobs are stored under URLs of the form "<protocol>://<location>/<path>". Each type of storage medium has an associated protocol.
Definition at line 38 of file ExternalStoreMedium.php.
ExternalStoreMedium::__construct | ( | array | $params | ) |
array | $params | Usage context options for this instance:
|
Reimplemented in ExternalStoreDB, ExternalStoreMemory, and ExternalStoreMwstore.
Definition at line 55 of file ExternalStoreMedium.php.
References $params.
ExternalStoreMedium::batchFetchFromURLs | ( | array | $urls | ) |
Fetch data from given external store URLs.
array | $urls | A list of external store URLs |
Reimplemented in ExternalStoreDB, ExternalStoreMemory, and ExternalStoreMwstore.
Definition at line 86 of file ExternalStoreMedium.php.
References $urls, and fetchFromURL().
|
abstract |
Fetch data from given external store URL.
string | $url | An external store URL |
MWException |
Reimplemented in ExternalStoreDB, ExternalStoreHttp, ExternalStoreMemory, and ExternalStoreMwstore.
Referenced by batchFetchFromURLs().
ExternalStoreMedium::isReadOnly | ( | $location | ) |
Check if a given location is read-only.
string | $location | The location name |
Reimplemented in ExternalStoreMwstore, ExternalStoreDB, and ExternalStoreHttp.
Definition at line 116 of file ExternalStoreMedium.php.
ExternalStoreMedium::setLogger | ( | LoggerInterface | $logger | ) |
Definition at line 67 of file ExternalStoreMedium.php.
References $logger.
|
abstract |
Insert a data item into a given location.
string | $location | The location name |
string | $data | The data item |
MWException |
Reimplemented in ExternalStoreMwstore, ExternalStoreDB, ExternalStoreHttp, and ExternalStoreMemory.
|
protected |
Default database domain to store content under.
Definition at line 42 of file ExternalStoreMedium.php.
Referenced by ExternalStoreMemory\fetchFromURL(), ExternalStoreDB\getDomainId(), and ExternalStoreMemory\store().
|
protected |
Whether this was factoried with an explicit DB domain.
Definition at line 44 of file ExternalStoreMedium.php.
|
protected |
Definition at line 47 of file ExternalStoreMedium.php.
Referenced by setLogger().
|
protected |
Usage context options for this instance.
Definition at line 40 of file ExternalStoreMedium.php.
Referenced by ExternalStoreDB\__construct(), __construct(), ExternalStoreMemory\__construct(), and ExternalStoreMwstore\__construct().