Wikibase
MediaWiki Wikibase extension
|
PropertyDataTypeLookup that uses an PropertyInfoLookup to find a property's data type ID. More...
Public Member Functions | |
__construct (PropertyInfoLookup $infoLookup, LoggerInterface $logger, $fallbackLookup=null) | |
getDataTypeIdForProperty (PropertyId $propertyId) | |
Private Attributes | |
$fallbackLookup | |
$infoLookup | |
$logger | |
PropertyDataTypeLookup that uses an PropertyInfoLookup to find a property's data type ID.
Wikibase\Lib\PropertyInfoDataTypeLookup::__construct | ( | PropertyInfoLookup | $infoLookup, |
LoggerInterface | $logger, | ||
$fallbackLookup = null ) |
PropertyInfoLookup | $infoLookup | |
LoggerInterface | $logger | |
PropertyDataTypeLookup | callable | null | $fallbackLookup | Another lookup to fall back to, or a callable which can be called (without arguments) to lazily return such a fallback, or null to disable the fallback (i.e. fail if property info is not available). |
Wikibase\Lib\PropertyInfoDataTypeLookup::getDataTypeIdForProperty | ( | PropertyId | $propertyId | ) |
PropertyId | $propertyId |
PropertyDataTypeLookupException |
Implements Wikibase\DataModel\Services\Lookup\PropertyDataTypeLookup.
|
private |
|
private |
|
private |