CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\ArchiveChangeListener Class Reference

Change listener responsible for writing to the archive index. More...

+ Inheritance diagram for CirrusSearch\ArchiveChangeListener:
+ Collaboration diagram for CirrusSearch\ArchiveChangeListener:

Public Member Functions

 __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 Public Member Functions

static create (JobQueueGroup $jobQueue, ConfigFactory $configFactory)
 

Detailed Description

Change listener responsible for writing to the archive index.

Member Function Documentation

◆ 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: