- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
-
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
◆ __construct()
Wikibase\Client\Changes\AffectedPagesFinder::__construct |
( |
UsageLookup |
$usageLookup, |
|
|
TitleFactory |
$titleFactory, |
|
|
LinkBatchFactory |
$linkBatchFactory, |
|
|
string |
$siteId, |
|
|
?LoggerInterface |
$logger = null , |
|
|
bool |
$checkPageExistence = true |
|
) |
| |
- Parameters
-
UsageLookup | $usageLookup | |
TitleFactory | $titleFactory | |
LinkBatchFactory | $linkBatchFactory | |
string | $siteId | |
LoggerInterface | null | $logger | |
bool | $checkPageExistence | To disable slow filtering that is not relevant in test scenarios. Not meant to be used in production! |
- Exceptions
-
◆ getAffectedPages()
Wikibase\Client\Changes\AffectedPagesFinder::getAffectedPages |
( |
EntityChange |
$change | ) |
|
|
private |
Returns the page updates implied by the given the change.
- Parameters
-
- Returns
- Traversable of PageEntityUsages
- See also
- Usage tracking for details about virtual usages
◆ getAffectedUsagesByPage()
Wikibase\Client\Changes\AffectedPagesFinder::getAffectedUsagesByPage |
( |
Change |
$change | ) |
|
- Parameters
-
- Returns
- PageEntityUsages[]
◆ getChangedAspects()
Wikibase\Client\Changes\AffectedPagesFinder::getChangedAspects |
( |
EntityChange |
$change | ) |
|
- Parameters
-
- Returns
- string[]
◆ getChangedStatementAspects()
Wikibase\Client\Changes\AffectedPagesFinder::getChangedStatementAspects |
( |
array |
$diff | ) |
|
|
private |
- Parameters
-
- Returns
- string[]
◆ getChangedTermAspects()
Wikibase\Client\Changes\AffectedPagesFinder::getChangedTermAspects |
( |
|
$aspect, |
|
|
array |
$diff |
|
) |
| |
|
private |
- Parameters
-
string | $aspect | |
string[] | $diff | |
- Returns
- string[]
◆ getPagesReferencedInDiff()
Wikibase\Client\Changes\AffectedPagesFinder::getPagesReferencedInDiff |
( |
array |
$siteLinkDiff | ) |
|
|
private |
- Parameters
-
- Exceptions
-
- Returns
- string[]
◆ getTitlesFromTexts()
Wikibase\Client\Changes\AffectedPagesFinder::getTitlesFromTexts |
( |
array |
$names | ) |
|
|
private |
- Parameters
-
- Returns
- Title[]
◆ isBadgesOnlyChange()
Wikibase\Client\Changes\AffectedPagesFinder::isBadgesOnlyChange |
( |
array |
$siteLinkDiff | ) |
|
|
private |
◆ makeVirtualUsages()
Wikibase\Client\Changes\AffectedPagesFinder::makeVirtualUsages |
( |
array |
$titles, |
|
|
EntityId |
$entityId, |
|
|
array |
$aspects |
|
) |
| |
|
private |
- Parameters
-
Title[] | $titles | |
EntityId | $entityId | |
string[] | $aspects | |
- Returns
- PageEntityUsages[]
◆ mergeUsagesInto()
Wikibase\Client\Changes\AffectedPagesFinder::mergeUsagesInto |
( |
iterable |
$from, |
|
|
array & |
$into |
|
) |
| |
|
private |
- Parameters
-
| iterable<PageEntityUsages> | $from |
PageEntityUsages[] | &$into | Array to merge into |
◆ transformAllPageEntityUsages()
Wikibase\Client\Changes\AffectedPagesFinder::transformAllPageEntityUsages |
( |
iterable |
$usages, |
|
|
EntityId |
$entityId, |
|
|
array |
$changedAspects |
|
) |
| |
|
private |
- Parameters
-
| iterable<PageEntityUsages> | $usages |
EntityId | $entityId | |
string[] | $changedAspects | |
- Returns
- iterable<PageEntityUsages>
◆ $checkPageExistence
Wikibase\Client\Changes\AffectedPagesFinder::$checkPageExistence |
|
private |
◆ $linkBatchFactory
Wikibase\Client\Changes\AffectedPagesFinder::$linkBatchFactory |
|
private |
◆ $logger
Wikibase\Client\Changes\AffectedPagesFinder::$logger |
|
private |
◆ $siteId
Wikibase\Client\Changes\AffectedPagesFinder::$siteId |
|
private |
◆ $titleFactory
Wikibase\Client\Changes\AffectedPagesFinder::$titleFactory |
|
private |
◆ $usageLookup
Wikibase\Client\Changes\AffectedPagesFinder::$usageLookup |
|
private |
The documentation for this class was generated from the following file: