Resolves the PropertyId for the input, which might be a property label or prefixed id.
More...
|
| 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...
|
|
Resolves the PropertyId for the input, which might be a property label or prefixed id.
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Client\DataAccess\PropertyIdResolver::__construct |
( |
EntityLookup |
$entityLookup, |
|
|
PropertyLabelResolver |
$propertyLabelResolver, |
|
|
UsageAccumulator |
$usageAccumulator |
|
) |
| |
◆ findPropertyByLabel()
Wikibase\Client\DataAccess\PropertyIdResolver::findPropertyByLabel |
( |
|
$propertyLabel, |
|
|
|
$languageCode |
|
) |
| |
|
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 );
- Parameters
-
string | $propertyLabel | |
string | $languageCode | |
- Returns
- PropertyId
- Exceptions
-
◆ resolvePropertyId()
Wikibase\Client\DataAccess\PropertyIdResolver::resolvePropertyId |
( |
|
$propertyLabelOrId, |
|
|
|
$languageCode |
|
) |
| |
- Parameters
-
string | $propertyLabelOrId | |
string | $languageCode | |
- Exceptions
-
- Returns
- PropertyId
◆ $entityLookup
Wikibase\Client\DataAccess\PropertyIdResolver::$entityLookup |
|
private |
◆ $propertyLabelResolver
Wikibase\Client\DataAccess\PropertyIdResolver::$propertyLabelResolver |
|
private |
◆ $usageAccumulator
Wikibase\Client\DataAccess\PropertyIdResolver::$usageAccumulator |
|
private |
The documentation for this class was generated from the following file: