Change listener responsible for writing to the archive index.
More...
|
| __construct (JobQueueGroup $jobQueue, SearchConfig $searchConfig) |
|
| onPageDeleteComplete (ProperPageIdentity $page, Authority $deleter, string $reason, int $pageID, RevisionRecord $deletedRev, ManualLogEntry $logEntry, int $archivedRevisionCount) |
|
| onPageUndeleteComplete (ProperPageIdentity $page, Authority $restorer, string $reason, RevisionRecord $restoredRev, ManualLogEntry $logEntry, int $restoredRevisionCount, bool $created, array $restoredPageIds) |
| When article is undeleted - check the archive for other instances of the title, if not there - drop it from the archive.
|
|
|
static | create (JobQueueGroup $jobQueue, ConfigFactory $configFactory) |
|
Change listener responsible for writing to the archive index.
◆ create()
static CirrusSearch\ArchiveChangeListener::create |
( |
JobQueueGroup | $jobQueue, |
|
|
ConfigFactory | $configFactory ) |
|
static |
@phan-suppress-next-line PhanTypeMismatchArgumentSuperType $config is actually a SearchConfig
◆ onPageDeleteComplete()
CirrusSearch\ArchiveChangeListener::onPageDeleteComplete |
( |
ProperPageIdentity | $page, |
|
|
Authority | $deleter, |
|
|
string | $reason, |
|
|
int | $pageID, |
|
|
RevisionRecord | $deletedRev, |
|
|
ManualLogEntry | $logEntry, |
|
|
int | $archivedRevisionCount ) |
- Parameters
-
ProperPageIdentity | $page | |
Authority | $deleter | |
string | $reason | |
int | $pageID | |
RevisionRecord | $deletedRev | |
ManualLogEntry | $logEntry | |
int | $archivedRevisionCount | |
- Returns
- void
◆ onPageUndeleteComplete()
CirrusSearch\ArchiveChangeListener::onPageUndeleteComplete |
( |
ProperPageIdentity | $page, |
|
|
Authority | $restorer, |
|
|
string | $reason, |
|
|
RevisionRecord | $restoredRev, |
|
|
ManualLogEntry | $logEntry, |
|
|
int | $restoredRevisionCount, |
|
|
bool | $created, |
|
|
array | $restoredPageIds ) |
When article is undeleted - check the archive for other instances of the title, if not there - drop it from the archive.
- Parameters
-
ProperPageIdentity | $page | |
Authority | $restorer | |
string | $reason | |
RevisionRecord | $restoredRev | |
ManualLogEntry | $logEntry | |
int | $restoredRevisionCount | |
bool | $created | |
array | $restoredPageIds | |
- Returns
- void
The documentation for this class was generated from the following file:
- includes/ArchiveChangeListener.php