Wikibase
MediaWiki Wikibase extension
|
Interface and base class for objects accumulating usage tracking information for a given page. More...
Public Member Functions | |
addUsage (EntityUsage $usage) | |
Registers usage of the given aspect of the given entity. More... | |
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... | |
getUsages () | |
Returns all entity usages previously registered via addXxxUsage() More... | |
Interface and base class for objects accumulating usage tracking information for a given page.
Wikibase\Client\Usage\UsageAccumulator::addAllUsage | ( | EntityId | $id | ) |
Registers the usage of any/all data of an entity (e.g.
when accessed programmatically using Lua).
EntityId | $id |
Wikibase\Client\Usage\UsageAccumulator::addDescriptionUsage | ( | EntityId | $id, |
$languageCode = null |
|||
) |
Registers the usage of an entity's description (in the given language).
EntityId | $id | |
string | null | $languageCode |
Wikibase\Client\Usage\UsageAccumulator::addLabelUsage | ( | EntityId | $id, |
$languageCode = null |
|||
) |
Registers the usage of an entity's label (in the given language).
EntityId | $id | |
string | null | $languageCode |
Wikibase\Client\Usage\UsageAccumulator::addOtherUsage | ( | EntityId | $id | ) |
Registers the usage of other (i.e.
not label, sitelink, or title) of an entity (e.g. access to statements or labels in labels a language other than the content language).
EntityId | $id |
Wikibase\Client\Usage\UsageAccumulator::addSiteLinksUsage | ( | EntityId | $id | ) |
Registers the usage of an entity's sitelinks, e.g.
to generate language links.
EntityId | $id |
Wikibase\Client\Usage\UsageAccumulator::addStatementUsage | ( | EntityId | $id, |
PropertyId | $propertyId | ||
) |
Registers the usage of statements from an entity (identified by their property id).
EntityId | $id | |
PropertyId | $propertyId | The PropertyId of Statements that are used. |
Wikibase\Client\Usage\UsageAccumulator::addTitleUsage | ( | EntityId | $id | ) |
Registers the usage of an entity's local page title, i.e.
the title of the local (client) page linked to the entity, e.g. to refer to the corresponding page on the local wiki.
EntityId | $id |
|
abstract |
Registers usage of the given aspect of the given entity.
EntityUsage | $usage |
Reimplemented in Wikibase\Client\Usage\RedirectTrackingUsageAccumulator, Wikibase\Client\Usage\ParserOutputUsageAccumulator, and Wikibase\Client\Usage\HashUsageAccumulator.
|
abstract |
Returns all entity usages previously registered via addXxxUsage()
Reimplemented in Wikibase\Client\Usage\RedirectTrackingUsageAccumulator, Wikibase\Client\Usage\ParserOutputUsageAccumulator, and Wikibase\Client\Usage\HashUsageAccumulator.