MediaWiki master
|
Inherits LoggerAwareInterface.
Public Member Functions | |
__construct (array $externalStores, array $defaultStores, string $localDomainId, ?LoggerInterface $logger=null) | |
getProtocols () | |
getStore ( $proto, array $params=[]) | |
Get an external store object of the given type, with the given parameters. | |
getStoreForUrl ( $url, array $params=[]) | |
Get the ExternalStoreMedium for a given URL. | |
getStoreLocationFromUrl ( $url) | |
Get the location within the appropriate store for a given a URL. | |
getUrlsByProtocol (array $urls) | |
getWriteBaseUrls () | |
setLogger (LoggerInterface $logger) | |
Definition at line 14 of file ExternalStoreFactory.php.
ExternalStoreFactory::__construct | ( | array | $externalStores, |
array | $defaultStores, | ||
string | $localDomainId, | ||
?LoggerInterface | $logger = null ) |
string[] | $externalStores | See $wgExternalStores |
string[] | $defaultStores | See $wgDefaultExternalStore |
string | $localDomainId | Local database/wiki ID |
LoggerInterface | null | $logger |
Definition at line 32 of file ExternalStoreFactory.php.
ExternalStoreFactory::getProtocols | ( | ) |
Definition at line 52 of file ExternalStoreFactory.php.
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).
string | $proto | Type of external storage, should be a value in $wgExternalStores |
array | $params | Map of ExternalStoreMedium::__construct context parameters. |
ExternalStoreException | When $proto is not recognized |
Definition at line 76 of file ExternalStoreFactory.php.
References $params.
Referenced by getStoreForUrl().
ExternalStoreFactory::getStoreForUrl | ( | $url, | |
array | $params = [] ) |
Get the ExternalStoreMedium for a given URL.
$url is either of the form:
string | $url | |
array | $params | Map of ExternalStoreMedium::__construct context parameters |
ExternalStoreException | When the protocol is missing or not recognized |
Definition at line 129 of file ExternalStoreFactory.php.
References $params, $path, $url, and getStore().
ExternalStoreFactory::getStoreLocationFromUrl | ( | $url | ) |
Get the location within the appropriate store for a given a URL.
string | $url |
ExternalStoreException |
Definition at line 146 of file ExternalStoreFactory.php.
References $url.
ExternalStoreFactory::getUrlsByProtocol | ( | array | $urls | ) |
string[] | $urls |
ExternalStoreException |
Definition at line 161 of file ExternalStoreFactory.php.
References $url.
ExternalStoreFactory::getWriteBaseUrls | ( | ) |
Definition at line 60 of file ExternalStoreFactory.php.
ExternalStoreFactory::setLogger | ( | LoggerInterface | $logger | ) |
Definition at line 44 of file ExternalStoreFactory.php.