Wikibase
MediaWiki Wikibase extension
|
Resolves the NumericPropertyId for the input, which might be a property label or prefixed id. More...
Public Member Functions | |
__construct (EntityLookup $entityLookup, PropertyLabelResolver $propertyLabelResolver, UsageAccumulator $usageAccumulator) | |
resolvePropertyId ( $propertyLabelOrId, $languageCode) | |
Private Member Functions | |
findPropertyByLabel ( $propertyLabel, $languageCode) | |
XXX: It might become useful to give the PropertyLabelResolver a hint as to which properties may become relevant during the present request, namely the ones used by the Item linked to the current page. More... | |
Private Attributes | |
$entityLookup | |
$propertyLabelResolver | |
$usageAccumulator | |
Resolves the NumericPropertyId for the input, which might be a property label or prefixed id.
Wikibase\Client\DataAccess\PropertyIdResolver::__construct | ( | EntityLookup | $entityLookup, |
PropertyLabelResolver | $propertyLabelResolver, | ||
UsageAccumulator | $usageAccumulator | ||
) |
|
private |
XXX: It might become useful to give the PropertyLabelResolver a hint as to which properties may become relevant during the present request, namely the ones used by the Item linked to the current page.
This could be done with something like this: $this->propertyLabelResolver->preloadLabelsFor( $propertiesUsedByItem );
string | $propertyLabel | |
string | $languageCode |
PropertyLabelNotResolvedException |
Wikibase\Client\DataAccess\PropertyIdResolver::resolvePropertyId | ( | $propertyLabelOrId, | |
$languageCode | |||
) |
string | $propertyLabelOrId | |
string | $languageCode |
PropertyLabelNotResolvedException |
|
private |
|
private |
|
private |