|
MediaWiki REL1_39
|
External storage in PHP process memory for testing. More...


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 32 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 47 of file ExternalStoreMemory.php.
References $blob, and fetchFromURL().
| ExternalStoreMemory::clear | ( | ) |
Remove all data from memory for this domain.
Definition at line 69 of file ExternalStoreMemory.php.
| ExternalStoreMemory::fetchFromURL | ( | $url | ) |
Fetch data from given external store URL.
| string | $url | An external store URL |
| MWException |
Reimplemented from ExternalStoreMedium.
Definition at line 38 of file ExternalStoreMemory.php.
References ExternalStoreMedium\$dbDomain.
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 |
| MWException |
Reimplemented from ExternalStoreMedium.
Definition at line 59 of file ExternalStoreMemory.php.
References ExternalStoreMedium\$dbDomain.