Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\CachingOtherProjectsSitesProvider Class Reference

Get a list of sites that should be displayed in the "Other projects" sidebar from cache or re-compute them. More...

+ Inheritance diagram for Wikibase\Client\CachingOtherProjectsSitesProvider:
+ Collaboration diagram for Wikibase\Client\CachingOtherProjectsSitesProvider:

Public Member Functions

 __construct (OtherProjectsSitesProvider $provider, BagOStuff $cache, $ttl)
 
 getOtherProjectsSiteIds (array $siteLinkGroups)
 Get the site ids of other projects to use.
 

Private Attributes

 $provider
 
 $cache
 
 $ttl
 

Detailed Description

Get a list of sites that should be displayed in the "Other projects" sidebar from cache or re-compute them.

Author
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\CachingOtherProjectsSitesProvider::__construct ( OtherProjectsSitesProvider $provider,
BagOStuff $cache,
$ttl )
Parameters
OtherProjectsSitesProvider$provider
BagOStuff$cache
int$ttlCache duration

Member Function Documentation

◆ getOtherProjectsSiteIds()

Wikibase\Client\CachingOtherProjectsSitesProvider::getOtherProjectsSiteIds ( array $siteLinkGroups)

Get the site ids of other projects to use.

Parameters
string[]$siteLinkGroups
Returns
string[]

Implements Wikibase\Client\OtherProjectsSitesProvider.

Member Data Documentation

◆ $cache

Wikibase\Client\CachingOtherProjectsSitesProvider::$cache
private

◆ $provider

Wikibase\Client\CachingOtherProjectsSitesProvider::$provider
private

◆ $ttl

Wikibase\Client\CachingOtherProjectsSitesProvider::$ttl
private

The documentation for this class was generated from the following file: