Wikibase
MediaWiki Wikibase extension
Wikibase\Client\Usage\NullUsageTracker Class Reference

No-op implementation of the UsageTracker and UsageLookup interfaces. More...

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

Public Member Functions

 addUsedEntities ( $pageId, array $usages)
 
 replaceUsedEntities ( $pageId, array $usages)
 
 pruneUsages ( $pageId)
 
 getUsagesForPage ( $pageId)
 
 getUnusedEntities (array $entityIds)
 
 getPagesUsing (array $entities, array $aspects=[])
 

Detailed Description

No-op implementation of the UsageTracker and UsageLookup interfaces.

Author
Daniel Kinzler
Marius Hoch

Member Function Documentation

◆ addUsedEntities()

Wikibase\Client\Usage\NullUsageTracker::addUsedEntities (   $pageId,
array  $usages 
)
See also
UsageTracker::addUsedEntities
Parameters
int$pageId
EntityUsage[]$usages

Implements Wikibase\Client\Usage\UsageTracker.

◆ getPagesUsing()

Wikibase\Client\Usage\NullUsageTracker::getPagesUsing ( array  $entities,
array  $aspects = [] 
)
See also
UsageLookup::getPagesUsing
Parameters
EntityId[]$entities
string[]$aspects
Returns
Traversable Always empty.

Implements Wikibase\Client\Usage\UsageLookup.

◆ getUnusedEntities()

Wikibase\Client\Usage\NullUsageTracker::getUnusedEntities ( array  $entityIds)
See also
UsageLookup::getUnusedEntities
Parameters
EntityId[]$entityIds
Returns
EntityId[]

Implements Wikibase\Client\Usage\UsageLookup.

◆ getUsagesForPage()

Wikibase\Client\Usage\NullUsageTracker::getUsagesForPage (   $pageId)
See also
UsageTracker::getUsagesForPage
Parameters
int$pageId
Returns
EntityUsage[]

Implements Wikibase\Client\Usage\UsageLookup.

◆ pruneUsages()

Wikibase\Client\Usage\NullUsageTracker::pruneUsages (   $pageId)
See also
UsageTracker::pruneUsages
Parameters
int$pageId
Returns
EntityUsage[]

Implements Wikibase\Client\Usage\UsageTracker.

◆ replaceUsedEntities()

Wikibase\Client\Usage\NullUsageTracker::replaceUsedEntities (   $pageId,
array  $usages 
)
See also
UsageTracker::replaceUsedEntities
Parameters
int$pageId
EntityUsage[]$usages
Returns
EntityUsage[]

Implements Wikibase\Client\Usage\UsageTracker.


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