Interface and base class for objects accumulating usage tracking information for a given page.
More...
|
| addUsage (EntityUsage $usage) |
| Registers usage of the given aspect of the given entity.
|
|
| 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.
|
|
| getUsages () |
| Returns all entity usages previously registered via addXxxUsage()
|
|
Interface and base class for objects accumulating usage tracking information for a given page.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
-
Thiemo Kreuz
◆ addAllUsage()
Wikibase\Client\Usage\UsageAccumulator::addAllUsage |
( |
EntityId |
$id | ) |
|
Registers the usage of any/all data of an entity (e.g.
when accessed programmatically using Lua).
- Parameters
-
◆ addDescriptionUsage()
Wikibase\Client\Usage\UsageAccumulator::addDescriptionUsage |
( |
EntityId |
$id, |
|
|
|
$languageCode = null |
|
) |
| |
Registers the usage of an entity's description (in the given language).
- Parameters
-
EntityId | $id | |
string | null | $languageCode | |
◆ addLabelUsage()
Wikibase\Client\Usage\UsageAccumulator::addLabelUsage |
( |
EntityId |
$id, |
|
|
|
$languageCode = null |
|
) |
| |
Registers the usage of an entity's label (in the given language).
- Parameters
-
EntityId | $id | |
string | null | $languageCode | |
◆ addOtherUsage()
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).
- Parameters
-
◆ addSiteLinksUsage()
Wikibase\Client\Usage\UsageAccumulator::addSiteLinksUsage |
( |
EntityId |
$id | ) |
|
Registers the usage of an entity's sitelinks, e.g.
to generate language links.
- Parameters
-
◆ addStatementUsage()
Wikibase\Client\Usage\UsageAccumulator::addStatementUsage |
( |
EntityId |
$id, |
|
|
PropertyId |
$propertyId |
|
) |
| |
Registers the usage of statements from an entity (identified by their property id).
- Parameters
-
EntityId | $id | |
PropertyId | $propertyId | The PropertyId of Statements that are used. |
◆ addTitleUsage()
Wikibase\Client\Usage\UsageAccumulator::addTitleUsage |
( |
EntityId |
$id | ) |
|
Registers the usage of an entity's local page title, e.g.
to refer to the corresponding page on the local wiki.
- Parameters
-
◆ addUsage()
Wikibase\Client\Usage\UsageAccumulator::addUsage |
( |
EntityUsage |
$usage | ) |
|
|
abstract |
◆ getUsages()
Wikibase\Client\Usage\UsageAccumulator::getUsages |
( |
| ) |
|
|
abstract |
The documentation for this class was generated from the following file: