|
MediaWiki master
|
External storage in PHP process memory for testing. More...
Inherits ExternalStoreMedium.

Public Member Functions | |||||||||
| batchFetchFromURLs (array $urls) | |||||||||
Fetch data from given external store URLs.
| |||||||||
| clear () | |||||||||
| Remove all data from memory for this domain. | |||||||||
| fetchFromURL ( $url) | |||||||||
Fetch data from given external store URL.
| |||||||||
| store ( $location, $data) | |||||||||
Insert a data item into a given location.
| |||||||||
Public Member Functions inherited from ExternalStoreMedium | |||||||||
| __construct (array $params) | |||||||||
| isReadOnly ( $location) | |||||||||
| Check if a given location is read-only. | |||||||||
| 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 PHP process memory for testing.
In this system, each store "location" is separate PHP array. URLs are of the form "memory://location/id". The id/value pairs at each location are segregated by DB domain ID.
Definition at line 18 of file ExternalStoreMemory.php.
| ExternalStoreMemory::batchFetchFromURLs | ( | array | $urls | ) |
Fetch data from given external store URLs.
| array | $urls | A list of external store URLs |
Reimplemented from ExternalStoreMedium.
Definition at line 35 of file ExternalStoreMemory.php.
References $url, and fetchFromURL().
| ExternalStoreMemory::clear | ( | ) |
Remove all data from memory for this domain.
Definition at line 58 of file ExternalStoreMemory.php.
| ExternalStoreMemory::fetchFromURL | ( | $url | ) |
Fetch data from given external store URL.
| string | $url | An external store URL |
| ExternalStoreException |
Reimplemented from ExternalStoreMedium.
Definition at line 25 of file ExternalStoreMemory.php.
References ExternalStoreMedium\$dbDomain, and $url.
Referenced by batchFetchFromURLs().
| ExternalStoreMemory::store | ( | $location, | |
| $data ) |
Insert a data item into a given location.
| string | $location | The location name |
| string | $data | The data item |
| ExternalStoreException |
Reimplemented from ExternalStoreMedium.
Definition at line 48 of file ExternalStoreMemory.php.
References ExternalStoreMedium\$dbDomain.