MediaWiki REL1_40
SiteLookup Interface Reference

Interface to retreive Site objects, for implementation by service classes. More...

Inherited by SiteStore.

Public Member Functions

 getSite ( $globalId)
 Return the site with provided global ID, or null if there is no such site.
 
 getSites ()
 Return a list of all sites.
 

Detailed Description

Interface to retreive Site objects, for implementation by service classes.

Default implementation is DBSiteStore.

Since
1.25

Definition at line 29 of file SiteLookup.php.

Member Function Documentation

◆ getSite()

SiteLookup::getSite ( $globalId)

Return the site with provided global ID, or null if there is no such site.

Since
1.25
Parameters
string$globalId
Returns
Site|null

Implemented in CachingSiteStore, and DBSiteStore.

◆ getSites()

SiteLookup::getSites ( )

Return a list of all sites.

Since
1.25
Returns
SiteList

Implemented in CachingSiteStore, and DBSiteStore.


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