|
MediaWiki master
|
Inherits LoggerAwareInterface.

Public Member Functions | |
| __construct (array $externalStores, array $defaultStores, string $localDomainId, ?LoggerInterface $logger=null) | |
| getDatabaseStore (array $params=[]) | |
| Shorthand for better type inference. | |
| 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 16 of file ExternalStoreFactory.php.
| MediaWiki\ExternalStore\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 34 of file ExternalStoreFactory.php.
| MediaWiki\ExternalStore\ExternalStoreFactory::getDatabaseStore | ( | array | $params = [] | ) |
Shorthand for better type inference.
Definition at line 122 of file ExternalStoreFactory.php.
| MediaWiki\ExternalStore\ExternalStoreFactory::getProtocols | ( | ) |
Definition at line 54 of file ExternalStoreFactory.php.
| MediaWiki\ExternalStore\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 78 of file ExternalStoreFactory.php.
References MediaWiki\MediaWikiServices\getInstance().
| MediaWiki\ExternalStore\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 140 of file ExternalStoreFactory.php.
| MediaWiki\ExternalStore\ExternalStoreFactory::getStoreLocationFromUrl | ( | $url | ) |
Get the location within the appropriate store for a given a URL.
| string | $url |
| ExternalStoreException |
Definition at line 157 of file ExternalStoreFactory.php.
References $url.
| MediaWiki\ExternalStore\ExternalStoreFactory::getUrlsByProtocol | ( | array | $urls | ) |
| string[] | $urls |
| ExternalStoreException |
Definition at line 172 of file ExternalStoreFactory.php.
References $url.
| MediaWiki\ExternalStore\ExternalStoreFactory::getWriteBaseUrls | ( | ) |
Definition at line 62 of file ExternalStoreFactory.php.
| MediaWiki\ExternalStore\ExternalStoreFactory::setLogger | ( | LoggerInterface | $logger | ) |
Definition at line 46 of file ExternalStoreFactory.php.