Wikibase
MediaWiki Wikibase extension
Wikibase\Client\DataAccess\Scribunto\WikibaseLanguageDependentLuaBindings Class Reference

Actual implementations of various functions to access Wikibase functionality through Scribunto. More...

Public Member Functions

 __construct (EntityIdParser $entityIdParser, FallbackLabelDescriptionLookup $labelDescriptionLookup)
 
 getLabel ( $prefixedEntityId)
 
 getDescription ( $prefixedEntityId)
 

Private Attributes

 $entityIdParser
 
 $labelDescriptionLookup
 

Detailed Description

Actual implementations of various functions to access Wikibase functionality through Scribunto.

Functions in here can depend on the target language.

Author
Jens Ohlig < jens..nosp@m.ohli.nosp@m.g@wik.nosp@m.imed.nosp@m.ia.de >
Marius Hoch < hoo@o.nosp@m.nlin.nosp@m.e.de >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\DataAccess\Scribunto\WikibaseLanguageDependentLuaBindings::__construct ( EntityIdParser  $entityIdParser,
FallbackLabelDescriptionLookup  $labelDescriptionLookup 
)
Parameters
EntityIdParser$entityIdParser
FallbackLabelDescriptionLookup$labelDescriptionLookup
Note
label usage is not tracked in $usageAccumulator. This should be done inside the $labelDescriptionLookup or an underlying TermsLookup.

Member Function Documentation

◆ getDescription()

Wikibase\Client\DataAccess\Scribunto\WikibaseLanguageDependentLuaBindings::getDescription (   $prefixedEntityId)
Parameters
string$prefixedEntityId
Returns
string[]|null[] Array containing description, description language code. Null for both, if entity couldn't be found/ no description present.

◆ getLabel()

Wikibase\Client\DataAccess\Scribunto\WikibaseLanguageDependentLuaBindings::getLabel (   $prefixedEntityId)
Parameters
string$prefixedEntityId
Returns
string[]|null[] Array containing label, label language code. Null for both, if entity couldn't be found/ no label present.

Member Data Documentation

◆ $entityIdParser

Wikibase\Client\DataAccess\Scribunto\WikibaseLanguageDependentLuaBindings::$entityIdParser
private

◆ $labelDescriptionLookup

Wikibase\Client\DataAccess\Scribunto\WikibaseLanguageDependentLuaBindings::$labelDescriptionLookup
private

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