Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\Usage\HashUsageAccumulator Class Reference

This implementation of the UsageAccumulator interface simply wraps an array containing the usage information. More...

+ Inheritance diagram for Wikibase\Client\Usage\HashUsageAccumulator:
+ Collaboration diagram for Wikibase\Client\Usage\HashUsageAccumulator:

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).
 
 addDescriptionUsage (EntityId $id, $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, e.g.
 
 addSiteLinksUsage (EntityId $id)
 Registers the usage of an entity's sitelinks, e.g.
 
 addStatementUsage (EntityId $id, PropertyId $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 Attributes

 $usages = []
 

Detailed Description

This implementation of the UsageAccumulator interface simply wraps an array containing the usage information.

Author
Daniel Kinzler

Member Function Documentation

◆ addUsage()

Wikibase\Client\Usage\HashUsageAccumulator::addUsage ( EntityUsage  $usage)
See also
UsageAccumulator::addUsage
Parameters
EntityUsage$usage

Reimplemented from Wikibase\Client\Usage\UsageAccumulator.

◆ getUsages()

Wikibase\Client\Usage\HashUsageAccumulator::getUsages ( )
See also
UsageAccumulator::getUsage
Returns
EntityUsage[]

Reimplemented from Wikibase\Client\Usage\UsageAccumulator.

Member Data Documentation

◆ $usages

Wikibase\Client\Usage\HashUsageAccumulator::$usages = []
private

The documentation for this class was generated from the following file: