Wikibase
MediaWiki Wikibase extension
|
Public Member Functions | |
__construct (UsageAccumulator $innerUsageAccumulator, EntityRedirectTargetLookup $entityRedirectTargetLookup) | |
addUsage (EntityUsage $usage) | |
Registers usage of the given aspect of the given entity. | |
getUsages () | |
Returns all entity usages previously registered via addXxxUsage() | |
Public Member Functions inherited from Wikibase\Client\Usage\UsageAccumulator | |
addLabelUsage (EntityId $id, ?string $languageCode=null) | |
Registers the usage of an entity's label (in the given language). | |
addDescriptionUsage (EntityId $id, ?string $languageCode=null) | |
Registers the usage of an entity's description (in the given language). | |
addTitleUsage (EntityId $id) | |
Registers the usage of an entity's local page title, i.e. | |
addSiteLinksUsage (EntityId $id) | |
Registers the usage of an entity's sitelinks, e.g. | |
addStatementUsage (EntityId $id, NumericPropertyId $propertyId) | |
Registers the usage of statements from an entity (identified by their property id). | |
addOtherUsage (EntityId $id) | |
Registers the usage of other (i.e. | |
addAllUsage (EntityId $id) | |
Registers the usage of any/all data of an entity (e.g. | |
Private Member Functions | |
addRedirectTargetUsage (EntityId $redirectTarget, string $aspect, ?string $modifier) | |
addRedirectSourceUsage (EntityId $redirectSource) | |
Private Attributes | |
$innerUsageAccumulator | |
$entityRedirectTargetLookup | |
Wikibase\Client\Usage\RedirectTrackingUsageAccumulator::__construct | ( | UsageAccumulator | $innerUsageAccumulator, |
EntityRedirectTargetLookup | $entityRedirectTargetLookup ) |
|
private |
|
private |
Wikibase\Client\Usage\RedirectTrackingUsageAccumulator::addUsage | ( | EntityUsage | $usage | ) |
Registers usage of the given aspect of the given entity.
EntityUsage | $usage |
Reimplemented from Wikibase\Client\Usage\UsageAccumulator.
Wikibase\Client\Usage\RedirectTrackingUsageAccumulator::getUsages | ( | ) |
Returns all entity usages previously registered via addXxxUsage()
Reimplemented from Wikibase\Client\Usage\UsageAccumulator.
|
private |
|
private |