SnakFormatter decorator that records entity usage.
More...
SnakFormatter decorator that records entity usage.
This uses an UsageTrackingLanguageFallbackLabelDescriptionLookup internally in order to track label usage.
- See also
- UsageAccumulator
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
◆ addLabelUsage()
Wikibase\Client\Usage\UsageTrackingSnakFormatter::addLabelUsage |
( |
EntityId |
$id | ) |
|
|
private |
◆ formatSnak()
Wikibase\Client\Usage\UsageTrackingSnakFormatter::formatSnak |
( |
Snak |
$snak | ) |
|
◆ getFormat()
Wikibase\Client\Usage\UsageTrackingSnakFormatter::getFormat |
( |
| ) |
|
Returns the format ID of the format this formatter generates.
This uses the FORMAT_XXX constants defined in OutputFormatSnakFormatterFactory.
- Returns
- string One of the SnakFormatter::FORMAT_... constants.
Implements Wikibase\Lib\Formatters\SnakFormatter.
◆ $repoItemUriParser
Wikibase\Client\Usage\UsageTrackingSnakFormatter::$repoItemUriParser |
|
private |
◆ $snakFormatter
Wikibase\Client\Usage\UsageTrackingSnakFormatter::$snakFormatter |
|
private |
◆ $usageAccumulator
Wikibase\Client\Usage\UsageTrackingSnakFormatter::$usageAccumulator |
|
private |
◆ $usageTrackingLabelDescriptionLookup
Wikibase\Client\Usage\UsageTrackingSnakFormatter::$usageTrackingLabelDescriptionLookup |
|
private |
The documentation for this class was generated from the following file: