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

Generates a list of sites that should be displayed in the "Other projects" sidebar. More...

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

Public Member Functions

 __construct (SiteLookup $siteLookup, $localSiteId, array $specialSiteGroups)
 
 getOtherProjectsSiteIds (array $siteLinkGroups)
 Get the site ids of other projects to use.
 

Private Member Functions

 expandSpecialGroups (&$groups)
 
 getLocalSite ()
 

Private Attributes

 $siteLookup
 
 $localSiteId
 
 $specialSiteGroups
 

Detailed Description

Generates a list of sites that should be displayed in the "Other projects" sidebar.

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

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\OtherProjectsSitesGenerator::__construct ( SiteLookup $siteLookup,
$localSiteId,
array $specialSiteGroups )
Parameters
SiteLookup$siteLookup
string$localSiteId
string[]$specialSiteGroups

Member Function Documentation

◆ expandSpecialGroups()

Wikibase\Client\OtherProjectsSitesGenerator::expandSpecialGroups ( & $groups)
private
Parameters
array&$groups

◆ getLocalSite()

Wikibase\Client\OtherProjectsSitesGenerator::getLocalSite ( )
private
Returns
Site

◆ getOtherProjectsSiteIds()

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

Get the site ids of other projects to use.

Parameters
array$siteLinkGroups
Returns
string[]

Implements Wikibase\Client\OtherProjectsSitesProvider.

Member Data Documentation

◆ $localSiteId

Wikibase\Client\OtherProjectsSitesGenerator::$localSiteId
private

◆ $siteLookup

Wikibase\Client\OtherProjectsSitesGenerator::$siteLookup
private

◆ $specialSiteGroups

Wikibase\Client\OtherProjectsSitesGenerator::$specialSiteGroups
private

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