|
string | $localDomainId |
| Default database domain to store content under.
|
|
LoggerInterface | $logger |
|
string[] | $protocols |
| List of storage access protocols.
|
|
string[] | $writeBaseUrls |
| List of base storage URLs that define locations for writes.
|
|
Definition at line 15 of file ExternalStoreFactory.php.
◆ __construct()
ExternalStoreFactory::__construct |
( |
array | $externalStores, |
|
|
array | $defaultStores, |
|
|
| $localDomainId, |
|
|
LoggerInterface | $logger = null ) |
- Parameters
-
string[] | $externalStores | See $wgExternalStores |
string[] | $defaultStores | See $wgDefaultExternalStore |
string | $localDomainId | Local database/wiki ID |
LoggerInterface | null | $logger | |
Definition at line 31 of file ExternalStoreFactory.php.
◆ getProtocols()
ExternalStoreFactory::getProtocols |
( |
| ) |
|
- Returns
- string[] List of active store types/protocols (lowercased), e.g. [ "db" ]
- Since
- 1.34
Definition at line 53 of file ExternalStoreFactory.php.
◆ getStore()
ExternalStoreFactory::getStore |
( |
| $proto, |
|
|
array | $params = [] ) |
Get an external store object of the given type, with the given parameters.
The 'domain' field in $params will be set to the local DB domain if it is unset or false. A special 'isDomainImplicit' flag is set when this happens, which should only be used to handle legacy DB domain configuration concerns (e.g. T200471).
- Parameters
-
- Returns
- ExternalStoreMedium The store class or false on error
- Exceptions
-
Definition at line 77 of file ExternalStoreFactory.php.
Referenced by getStoreForUrl().
◆ getStoreForUrl()
ExternalStoreFactory::getStoreForUrl |
( |
| $url, |
|
|
array | $params = [] ) |
◆ getStoreLocationFromUrl()
ExternalStoreFactory::getStoreLocationFromUrl |
( |
| $url | ) |
|
Get the location within the appropriate store for a given a URL.
- Parameters
-
- Returns
- string
- Exceptions
-
- Since
- 1.34
Definition at line 138 of file ExternalStoreFactory.php.
◆ getUrlsByProtocol()
ExternalStoreFactory::getUrlsByProtocol |
( |
array | $urls | ) |
|
- Parameters
-
- Returns
- array[] Map of (protocol => list of URLs)
- Exceptions
-
- Since
- 1.34
Definition at line 153 of file ExternalStoreFactory.php.
◆ getWriteBaseUrls()
ExternalStoreFactory::getWriteBaseUrls |
( |
| ) |
|
- Returns
- string[] List of default base URLs for writes, e.g. [ "DB://cluster1" ]
- Since
- 1.34
Definition at line 61 of file ExternalStoreFactory.php.
◆ setLogger()
ExternalStoreFactory::setLogger |
( |
LoggerInterface | $logger | ) |
|
◆ splitStorageUrl()
static ExternalStoreFactory::splitStorageUrl |
( |
| $storeUrl | ) |
|
|
staticprivate |
- Parameters
-
- Returns
- string[] (protocol, store location or location-qualified path)
- Exceptions
-
Definition at line 168 of file ExternalStoreFactory.php.
◆ $localDomainId
string ExternalStoreFactory::$localDomainId |
|
private |
◆ $logger
LoggerInterface ExternalStoreFactory::$logger |
|
private |
◆ $protocols
string [] ExternalStoreFactory::$protocols |
|
private |
◆ $writeBaseUrls
string [] ExternalStoreFactory::$writeBaseUrls |
|
private |
The documentation for this class was generated from the following file: