Wikibase
MediaWiki Wikibase extension
|
Interface for change handling. More...
Public Member Functions | |
__construct (AffectedPagesFinder $affectedPagesFinder, TitleFactory $titleFactory, PageUpdater $updater, ChangeRunCoalescer $changeRunCoalescer, SiteLookup $siteLookup, LoggerInterface $logger, $injectRecentChanges=true) | |
handleChanges (array $changes, array $rootJobParams=[]) | |
handleChange (EntityChange $change, array $rootJobParams=[]) | |
Main entry point for handling changes. | |
Private Member Functions | |
getTitleBatchSignature (array $titles) | |
getChangeSignature (EntityChange $change) | |
getTitlesForUsages ( $usagesPerPage) | |
getChangeIdForLog (Change $change) | |
Returns a human readable change ID, containing multiple IDs in case of a coalesced change. | |
Private Attributes | |
$affectedPagesFinder | |
$titleFactory | |
$updater | |
$changeRunCoalescer | |
$siteLookup | |
$logger | |
$injectRecentChanges | |
Interface for change handling.
Whenever a change is detected, it should be fed to this service which then takes care handling it.
Wikibase\Client\Changes\ChangeHandler::__construct | ( | AffectedPagesFinder | $affectedPagesFinder, |
TitleFactory | $titleFactory, | ||
PageUpdater | $updater, | ||
ChangeRunCoalescer | $changeRunCoalescer, | ||
SiteLookup | $siteLookup, | ||
LoggerInterface | $logger, | ||
$injectRecentChanges = true |
|||
) |
AffectedPagesFinder | $affectedPagesFinder | |
TitleFactory | $titleFactory | |
PageUpdater | $updater | |
ChangeRunCoalescer | $changeRunCoalescer | |
SiteLookup | $siteLookup | |
LoggerInterface | $logger | |
bool | $injectRecentChanges |
InvalidArgumentException |
|
private |
Returns a human readable change ID, containing multiple IDs in case of a coalesced change.
Change | $change |
|
private |
EntityChange | $change |
|
private |
Title[] | $titles |
|
private |
PageEntityUsages[] | $usagesPerPage |
Wikibase\Client\Changes\ChangeHandler::handleChange | ( | EntityChange | $change, |
array | $rootJobParams = [] |
||
) |
Main entry point for handling changes.
EntityChange | $change | |
array | $rootJobParams | any relevant root job parameters to be inherited by new jobs. |
Wikibase\Client\Changes\ChangeHandler::handleChanges | ( | array | $changes, |
array | $rootJobParams = [] |
||
) |
EntityChange[] | $changes | |
array | $rootJobParams | any relevant root job parameters to be inherited by new jobs. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |