38 return MediaWikiServices::getInstance()
39 ->getExternalStoreFactory()
40 ->getStore( $proto, $params );
56 return MediaWikiServices::getInstance()
57 ->getExternalStoreAccess()
58 ->fetchFromURL(
$url, $params );
75 public static function insert(
$url, $data, array $params = [] ) {
77 $esFactory = MediaWikiServices::getInstance()->getExternalStoreFactory();
78 $location = $esFactory->getStoreLocationFromUrl(
$url );
80 return $esFactory->getStoreForUrl(
$url, $params )->store( $location, $data );
96 return MediaWikiServices::getInstance()->getExternalStoreAccess()->fetchFromURLs( $urls );
112 return MediaWikiServices::getInstance()->getExternalStoreAccess()->insert( $data, $params );
129 return MediaWikiServices::getInstance()
130 ->getExternalStoreAccess()
131 ->insert( $data, $params, $tryStores );
142 return MediaWikiServices::getInstance()
143 ->getExternalStoreAccess()
144 ->insert( $data, [
'domain' => $wiki ] );
static insertWithFallback(array $tryStores, $data, array $params=[])
Like insert() above, but does more of the work for us.
static fetchFromURL( $url, array $params=[])
Fetch data from given URL.
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 iden...
static batchFetchFromURLs(array $urls)
Fetch data from multiple URLs with a minimum of round trips.
static insertToDefault( $data, array $params=[])
Like insert() above, but does more of the work for us.
static insertToForeignDefault( $data, $wiki)
static getStoreObject( $proto, array $params=[])
Get an external store object of the given type, with the given parameters.