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

A lookup that resolves a specific sitelink on a specific Item into a MediaWiki Title object. More...

+ Inheritance diagram for Wikibase\Client\DataAccess\ClientSiteLinkTitleLookup:
+ Collaboration diagram for Wikibase\Client\DataAccess\ClientSiteLinkTitleLookup:

Public Member Functions

 __construct (SiteLinkLookup $siteLinkLookup, $clientSiteId)
 
 getTitleForId (EntityId $id)
 
- Public Member Functions inherited from Wikibase\Lib\Store\EntityTitleLookup
 getTitlesForIds (array $ids)
 Returns an array of Titles for the given entity ids, indexed by the id serialization.
 

Private Member Functions

 getPageNameForItem (ItemId $id)
 

Private Attributes

 $siteLinkLookup
 
 $clientSiteId
 

Detailed Description

A lookup that resolves a specific sitelink on a specific Item into a MediaWiki Title object.

Author
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\DataAccess\ClientSiteLinkTitleLookup::__construct ( SiteLinkLookup $siteLinkLookup,
$clientSiteId )
Parameters
SiteLinkLookup$siteLinkLookup
string$clientSiteId

Member Function Documentation

◆ getPageNameForItem()

Wikibase\Client\DataAccess\ClientSiteLinkTitleLookup::getPageNameForItem ( ItemId $id)
private
Parameters
ItemId$id
Returns
string|null

◆ getTitleForId()

Wikibase\Client\DataAccess\ClientSiteLinkTitleLookup::getTitleForId ( EntityId $id)
See also
EntityTitleLookup::getTitleForId
Parameters
EntityId$id
Returns
Title|null

Implements Wikibase\Lib\Store\EntityTitleLookup.

Member Data Documentation

◆ $clientSiteId

Wikibase\Client\DataAccess\ClientSiteLinkTitleLookup::$clientSiteId
private

◆ $siteLinkLookup

Wikibase\Client\DataAccess\ClientSiteLinkTitleLookup::$siteLinkLookup
private

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