Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup Class Reference
+ Inheritance diagram for Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup:
+ Collaboration diagram for Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup:

Public Member Functions

 __construct (EntityLookup $entityLookup)
 
 getLabel (EntityId $entityId, $languageCode)
 
 getLabels (EntityId $entityId, array $languages)
 
 getDescription (EntityId $entityId, $languageCode)
 
 getDescriptions (EntityId $entityId, array $languages)
 

Private Member Functions

 getAllLabels (EntityId $entityId, array $languageCodes)
 
 getAllDescriptions (EntityId $entityId, array $languageCodes)
 
 fetchEntity (EntityId $entityId, array $languages)
 

Private Attributes

 $entityLookup
 
 $labels
 
 $descriptions
 

Detailed Description

Since
1.1
Author
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
Addshore

Constructor & Destructor Documentation

◆ __construct()

Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup::__construct ( EntityLookup $entityLookup)

Member Function Documentation

◆ fetchEntity()

Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup::fetchEntity ( EntityId $entityId,
array $languages )
private
Parameters
EntityId$entityId
string[]$languagesNot used for filtering but in thrown exceptions.
Exceptions
TermLookupException
Returns
EntityDocument

◆ getAllDescriptions()

Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup::getAllDescriptions ( EntityId $entityId,
array $languageCodes )
private
Parameters
EntityId$entityId
string[]$languageCodesNot used for filtering but in thrown exceptions.
Exceptions
TermLookupException
Returns
TermList

◆ getAllLabels()

Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup::getAllLabels ( EntityId $entityId,
array $languageCodes )
private
Parameters
EntityId$entityId
string[]$languageCodesNot used for filtering but in thrown exceptions.
Exceptions
TermLookupException
Returns
TermList

◆ getDescription()

Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup::getDescription ( EntityId $entityId,
$languageCode )
See also
TermLookup::getDescription()
Parameters
EntityId$entityId
string$languageCode
Exceptions
TermLookupException
Returns
string|null

Implements Wikibase\DataModel\Services\Lookup\TermLookup.

◆ getDescriptions()

Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup::getDescriptions ( EntityId $entityId,
array $languages )
See also
TermLookup::getDescriptions()
Parameters
EntityId$entityId
string[]$languages
Exceptions
TermLookupException
Returns
string[]

Implements Wikibase\DataModel\Services\Lookup\TermLookup.

◆ getLabel()

Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup::getLabel ( EntityId $entityId,
$languageCode )
See also
TermLookup::getLabel()
Parameters
EntityId$entityId
string$languageCode
Returns
string|null
Exceptions
TermLookupException

Implements Wikibase\DataModel\Services\Lookup\TermLookup.

◆ getLabels()

Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup::getLabels ( EntityId $entityId,
array $languages )
See also
TermLookup::getLabels()
Parameters
EntityId$entityId
string[]$languages
Exceptions
TermLookupException
Returns
string[]

Implements Wikibase\DataModel\Services\Lookup\TermLookup.

Member Data Documentation

◆ $descriptions

Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup::$descriptions
private

◆ $entityLookup

Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup::$entityLookup
private

◆ $labels

Wikibase\DataModel\Services\Lookup\EntityRetrievingTermLookup::$labels
private

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