This is the main interface for fetching or inserting objects with ExternalStore.
More...
This is the main interface for fetching or inserting objects with ExternalStore.
This interface is meant to mimic the ExternalStoreMedium base class (which represents a single external store protocol), and transparently uses the right instance of that class when fetching by URL.
- See also
- ExternalStore Architecture.
- Since
- 1.34
Definition at line 43 of file ExternalStoreAccess.php.
◆ __construct()
◆ fetchFromURL()
ExternalStoreAccess::fetchFromURL |
( |
|
$url, |
|
|
array |
$params = [] |
|
) |
| |
◆ fetchFromURLs()
ExternalStoreAccess::fetchFromURLs |
( |
array |
$urls, |
|
|
array |
$params = [] |
|
) |
| |
◆ insert()
ExternalStoreAccess::insert |
( |
|
$data, |
|
|
array |
$params = [] , |
|
|
array |
$tryStores = null |
|
) |
| |
Insert data into storage and return the assigned URL.
This will randomly pick one of the available write storage locations to put the data. It will keep failing-over to any untried storage locations whenever one location is not usable.
- See also
- ExternalStoreFactory::getStore()
- Parameters
-
- Returns
- string|false The URL of the stored data item, or false on error
- Exceptions
-
Definition at line 117 of file ExternalStoreAccess.php.
◆ isReadOnly()
ExternalStoreAccess::isReadOnly |
( |
|
$storeUrls = null | ) |
|
- Parameters
-
string[] | string | null | $storeUrls | Base URL(s) to check, e.g. [ "DB://cluster1" ] |
- Returns
- bool Whether all the default insertion stores are marked as read-only
- Exceptions
-
Definition at line 186 of file ExternalStoreAccess.php.
◆ setLogger()
ExternalStoreAccess::setLogger |
( |
LoggerInterface |
$logger | ) |
|
The documentation for this class was generated from the following file: