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

A remediator that simply records all actions scheduled to it. More...

+ Inheritance diagram for CirrusSearch\Sanity\BufferedRemediator:
+ Collaboration diagram for CirrusSearch\Sanity\BufferedRemediator:

Public Member Functions

 redirectInIndex (string $docId, WikiPage $page, string $indexSuffix)
 @inheritDoc
 
 pageNotInIndex (WikiPage $page)
 @inheritDoc
 
 ghostPageInIndex ( $docId, Title $title)
 @inheritDoc
 
 pageInWrongIndex ( $docId, WikiPage $page, $indexSuffix)
 @inheritDoc
 
 oldVersionInIndex ( $docId, WikiPage $page, $indexSuffix)
 @inheritDoc
 
 oldDocument (WikiPage $page)
 @inheritDoc
 
 getActions ()
 The list of recorded actions.
 
 hasSameActions (BufferedRemediator $remediator)
 Check if the actions recorded on this remediator are the same as the actions recorded on $remediator.
 
 replayOn (Remediator $remediator)
 
 resetActions ()
 Reset actions recorded by this remediator.
 

Detailed Description

A remediator that simply records all actions scheduled to it.

These actions can then be replayed on an arbitrary remediator by calling replayOn( Remediator ). The actions can be reset by calling resetActions()

Member Function Documentation

◆ getActions()

CirrusSearch\Sanity\BufferedRemediator::getActions ( )

The list of recorded actions.

Returns
array

◆ ghostPageInIndex()

CirrusSearch\Sanity\BufferedRemediator::ghostPageInIndex ( $docId,
Title $title )

@inheritDoc

Implements CirrusSearch\Sanity\Remediator.

◆ hasSameActions()

CirrusSearch\Sanity\BufferedRemediator::hasSameActions ( BufferedRemediator $remediator)

Check if the actions recorded on this remediator are the same as the actions recorded on $remediator.

Parameters
BufferedRemediator$remediator
Returns
bool

◆ oldDocument()

CirrusSearch\Sanity\BufferedRemediator::oldDocument ( WikiPage $page)

@inheritDoc

Implements CirrusSearch\Sanity\Remediator.

◆ oldVersionInIndex()

CirrusSearch\Sanity\BufferedRemediator::oldVersionInIndex ( $docId,
WikiPage $page,
$indexSuffix )

@inheritDoc

Implements CirrusSearch\Sanity\Remediator.

◆ pageInWrongIndex()

CirrusSearch\Sanity\BufferedRemediator::pageInWrongIndex ( $docId,
WikiPage $page,
$indexSuffix )

@inheritDoc

Implements CirrusSearch\Sanity\Remediator.

◆ pageNotInIndex()

CirrusSearch\Sanity\BufferedRemediator::pageNotInIndex ( WikiPage $page)

@inheritDoc

Implements CirrusSearch\Sanity\Remediator.

◆ redirectInIndex()

CirrusSearch\Sanity\BufferedRemediator::redirectInIndex ( string $docId,
WikiPage $page,
string $indexSuffix )

@inheritDoc

Implements CirrusSearch\Sanity\Remediator.

◆ replayOn()

CirrusSearch\Sanity\BufferedRemediator::replayOn ( Remediator $remediator)
Parameters
Remediator$remediator

The documentation for this class was generated from the following file: