Wikibase
MediaWiki Wikibase extension
Wikibase\Client\Usage\RedirectTrackingUsageAccumulator Class Reference
+ Inheritance diagram for Wikibase\Client\Usage\RedirectTrackingUsageAccumulator:
+ Collaboration diagram for Wikibase\Client\Usage\RedirectTrackingUsageAccumulator:

Public Member Functions

 __construct (UsageAccumulator $innerUsageAccumulator, EntityRedirectTargetLookup $entityRedirectTargetLookup)
 
 addUsage (EntityUsage $usage)
 Registers usage of the given aspect of the given entity. More...
 
 getUsages ()
 Returns all entity usages previously registered via addXxxUsage() More...
 
- 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, NumericPropertyId $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 Member Functions

 addRedirectTargetUsage (EntityId $redirectTarget, string $aspect, ?string $modifier)
 
 addRedirectSourceUsage (EntityId $redirectSource)
 

Private Attributes

 $innerUsageAccumulator
 
 $entityRedirectTargetLookup
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Usage\RedirectTrackingUsageAccumulator::__construct ( UsageAccumulator  $innerUsageAccumulator,
EntityRedirectTargetLookup  $entityRedirectTargetLookup 
)

Member Function Documentation

◆ addRedirectSourceUsage()

Wikibase\Client\Usage\RedirectTrackingUsageAccumulator::addRedirectSourceUsage ( EntityId  $redirectSource)
private

◆ addRedirectTargetUsage()

Wikibase\Client\Usage\RedirectTrackingUsageAccumulator::addRedirectTargetUsage ( EntityId  $redirectTarget,
string  $aspect,
?string  $modifier 
)
private

◆ addUsage()

Wikibase\Client\Usage\RedirectTrackingUsageAccumulator::addUsage ( EntityUsage  $usage)

Registers usage of the given aspect of the given entity.

Parameters
EntityUsage$usage
Returns
void

Reimplemented from Wikibase\Client\Usage\UsageAccumulator.

◆ getUsages()

Wikibase\Client\Usage\RedirectTrackingUsageAccumulator::getUsages ( )

Returns all entity usages previously registered via addXxxUsage()

Returns
EntityUsage[]

Reimplemented from Wikibase\Client\Usage\UsageAccumulator.

Member Data Documentation

◆ $entityRedirectTargetLookup

Wikibase\Client\Usage\RedirectTrackingUsageAccumulator::$entityRedirectTargetLookup
private

◆ $innerUsageAccumulator

Wikibase\Client\Usage\RedirectTrackingUsageAccumulator::$innerUsageAccumulator
private

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