|
static | batchFetchFromURLs (array $urls) |
| Fetch data from multiple URLs with a minimum of round trips.
|
|
static | fetchFromURL ( $url, array $params=[]) |
| Fetch data from given URL.
|
|
static | getStoreObject ( $proto, array $params=[]) |
| Get an external store object of the given type, with the given parameters.
|
|
static | insert ( $url, $data, array $params=[]) |
| Store a data item to an external store, identified by a partial URL The protocol part is used to identify the class, the rest is passed to the class itself as a parameter.
|
|
static | insertToDefault ( $data, array $params=[]) |
| Like insert() above, but does more of the work for us.
|
|
static | insertToForeignDefault ( $data, $wiki) |
|
static | insertWithFallback (array $tryStores, $data, array $params=[]) |
| Like insert() above, but does more of the work for us.
|
|
- Deprecated
- since 1.34 Use the ExternalStoreAccess service instead.
Definition at line 27 of file ExternalStore.php.
◆ batchFetchFromURLs()
static ExternalStore::batchFetchFromURLs |
( |
array | $urls | ) |
|
|
static |
Fetch data from multiple URLs with a minimum of round trips.
- Parameters
-
array | $urls | The URLs of the text to get |
- Returns
- array Map from url to its data. Data is either string when found or false on failure.
- Exceptions
-
- Deprecated
- since 1.34
Definition at line 95 of file ExternalStore.php.
◆ fetchFromURL()
static ExternalStore::fetchFromURL |
( |
| $url, |
|
|
array | $params = [] ) |
|
static |
◆ getStoreObject()
static ExternalStore::getStoreObject |
( |
| $proto, |
|
|
array | $params = [] ) |
|
static |
Get an external store object of the given type, with the given parameters.
- Parameters
-
string | $proto | Type of external storage, should be a value in $wgExternalStores |
array | $params | Associative array of ExternalStoreMedium parameters |
- Returns
- ExternalStoreMedium|bool The store class or false on error
- Deprecated
- since 1.34
Definition at line 36 of file ExternalStore.php.
References $params.
◆ insert()
static ExternalStore::insert |
( |
| $url, |
|
|
| $data, |
|
|
array | $params = [] ) |
|
static |
Store a data item to an external store, identified by a partial URL The protocol part is used to identify the class, the rest is passed to the class itself as a parameter.
- Parameters
-
string | $url | A partial external store URL ("<store type>://<location>") |
string | $data | |
array | $params | Associative array of ExternalStoreMedium parameters |
- Returns
- string|bool The URL of the stored data item, or false on error
- Deprecated
- since 1.34
Definition at line 75 of file ExternalStore.php.
References $params, and $url.
◆ insertToDefault()
static ExternalStore::insertToDefault |
( |
| $data, |
|
|
array | $params = [] ) |
|
static |
Like insert() above, but does more of the work for us.
This function does not need a url param, it builds it by itself. It also fails-over to the next possible clusters provided by $wgDefaultExternalStore.
- Parameters
-
- Returns
- string The URL of the stored data item
- Exceptions
-
- Deprecated
- since 1.34
Definition at line 111 of file ExternalStore.php.
References $params.
◆ insertToForeignDefault()
static ExternalStore::insertToForeignDefault |
( |
| $data, |
|
|
| $wiki ) |
|
static |
◆ insertWithFallback()
static ExternalStore::insertWithFallback |
( |
array | $tryStores, |
|
|
| $data, |
|
|
array | $params = [] ) |
|
static |
Like insert() above, but does more of the work for us.
This function does not need a url param, it builds it by itself. It also fails-over to the next possible clusters as provided in the first parameter.
- Parameters
-
- Returns
- string The URL of the stored data item
- Exceptions
-
- Deprecated
- since 1.34
Definition at line 128 of file ExternalStore.php.
References $params.
The documentation for this class was generated from the following file: