Wikibase
MediaWiki Wikibase extension
|
This implementation of the UsageAccumulator interface simply wraps an array containing the usage information. More...
Public Member Functions | |
addUsage (EntityUsage $usage) | |
getUsages () | |
Public Member Functions inherited from Wikibase\Client\Usage\UsageAccumulator | |
addLabelUsage (EntityId $id, $languageCode=null) | |
Registers the usage of an entity's label (in the given language). More... | |
addDescriptionUsage (EntityId $id, $languageCode=null) | |
Registers the usage of an entity's description (in the given language). More... | |
addTitleUsage (EntityId $id) | |
Registers the usage of an entity's local page title, i.e. More... | |
addSiteLinksUsage (EntityId $id) | |
Registers the usage of an entity's sitelinks, e.g. More... | |
addStatementUsage (EntityId $id, PropertyId $propertyId) | |
Registers the usage of statements from an entity (identified by their property id). More... | |
addOtherUsage (EntityId $id) | |
Registers the usage of other (i.e. More... | |
addAllUsage (EntityId $id) | |
Registers the usage of any/all data of an entity (e.g. More... | |
Private Attributes | |
$usages = [] | |
This implementation of the UsageAccumulator interface simply wraps an array containing the usage information.
Wikibase\Client\Usage\HashUsageAccumulator::addUsage | ( | EntityUsage | $usage | ) |
EntityUsage | $usage |
Reimplemented from Wikibase\Client\Usage\UsageAccumulator.
Wikibase\Client\Usage\HashUsageAccumulator::getUsages | ( | ) |
Reimplemented from Wikibase\Client\Usage\UsageAccumulator.
|
private |