Wikibase
MediaWiki Wikibase extension
|
This class de-duplicates entity usages for performance and storage reasons. More...
Public Member Functions | |
__construct (array $usageModifierLimits) | |
deduplicate (array $usages) | |
Private Member Functions | |
structureUsages (array $usages) | |
deduplicateStructuredUsages (array $structuredUsages) | |
limitPerAspect ( $aspect, array &$usages) | |
deduplicatePerAspect (array &$usages) | |
flattenStructuredUsages (array $structuredUsages) | |
Private Attributes | |
$usageModifierLimits | |
This class de-duplicates entity usages for performance and storage reasons.
Wikibase\Client\Usage\UsageDeduplicator::__construct | ( | array | $usageModifierLimits | ) |
int[] | $usageModifierLimits | associative array mapping usage type to the limit |
Wikibase\Client\Usage\UsageDeduplicator::deduplicate | ( | array | $usages | ) |
EntityUsage[] | $usages |
|
private |
EntityUsage[] | &$usages |
|
private |
array[][] | $structuredUsages |
|
private |
array[] | $structuredUsages |
|
private |
string | $aspect | |
EntityUsage[] | &$usages |
|
private |
EntityUsage[] | $usages |
|
private |