Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\PropertyInfoDataTypeLookup Class Reference

PropertyDataTypeLookup that uses an PropertyInfoLookup to find a property's data type ID. More...

+ Inheritance diagram for Wikibase\Lib\PropertyInfoDataTypeLookup:
+ Collaboration diagram for Wikibase\Lib\PropertyInfoDataTypeLookup:

Public Member Functions

 __construct (PropertyInfoLookup $infoLookup, LoggerInterface $logger, PropertyDataTypeLookup $fallbackLookup=null)
 
 getDataTypeIdForProperty (PropertyId $propertyId)
 

Private Attributes

 $fallbackLookup
 
 $infoLookup
 
 $logger
 

Detailed Description

PropertyDataTypeLookup that uses an PropertyInfoLookup to find a property's data type ID.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\PropertyInfoDataTypeLookup::__construct ( PropertyInfoLookup $infoLookup,
LoggerInterface $logger,
PropertyDataTypeLookup $fallbackLookup = null )
Parameters
PropertyInfoLookup$infoLookup
LoggerInterface$logger
PropertyDataTypeLookup | null$fallbackLookup

Member Function Documentation

◆ getDataTypeIdForProperty()

Wikibase\Lib\PropertyInfoDataTypeLookup::getDataTypeIdForProperty ( PropertyId $propertyId)
Parameters
PropertyId$propertyId
Returns
string
Exceptions
PropertyDataTypeLookupException

Implements Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookup.

Member Data Documentation

◆ $fallbackLookup

Wikibase\Lib\PropertyInfoDataTypeLookup::$fallbackLookup
private

◆ $infoLookup

Wikibase\Lib\PropertyInfoDataTypeLookup::$infoLookup
private

◆ $logger

Wikibase\Lib\PropertyInfoDataTypeLookup::$logger
private

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