Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Sites\SitesBuilder Class Reference

Builds the site identifiers table. More...

Public Member Functions

 __construct (SiteStore $store, array $validGroups)
 
 buildStore (array $sites, $siteGroup=null, $wikiId=null)
 

Protected Member Functions

 addInterwikiIdsToGroup (array $sites, $siteGroup)
 

Private Member Functions

 getInterwikiGroup (array $sites, $wikiId)
 

Private Attributes

 $store
 
 $validGroups
 

Detailed Description

Builds the site identifiers table.

Note
: this should move out of Wikibase
Author
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Sites\SitesBuilder::__construct ( SiteStore  $store,
array  $validGroups 
)
Parameters
SiteStore$store
string[]$validGroups

Member Function Documentation

◆ addInterwikiIdsToGroup()

Wikibase\Lib\Sites\SitesBuilder::addInterwikiIdsToGroup ( array  $sites,
  $siteGroup 
)
protected
Parameters
Site[]$sites
string$siteGroup
Returns
Site[]

◆ buildStore()

Wikibase\Lib\Sites\SitesBuilder::buildStore ( array  $sites,
  $siteGroup = null,
  $wikiId = null 
)
Parameters
Site[]$sites
string | null$siteGroup
string | null$wikiId

◆ getInterwikiGroup()

Wikibase\Lib\Sites\SitesBuilder::getInterwikiGroup ( array  $sites,
  $wikiId 
)
private
Parameters
Site[]$sites
string$wikiId
Returns
string

Member Data Documentation

◆ $store

Wikibase\Lib\Sites\SitesBuilder::$store
private

◆ $validGroups

Wikibase\Lib\Sites\SitesBuilder::$validGroups
private

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