MediaWiki master
MediaWiki\Storage\RevertedTagUpdate Class Reference

Adds the mw-reverted tag to reverted edits after a revert is made. More...

Inherits MediaWiki\Deferred\DeferrableUpdate.

Collaboration diagram for MediaWiki\Storage\RevertedTagUpdate:

Public Member Functions

 __construct (RevisionStore $revisionStore, LoggerInterface $logger, ChangeTagsStore $changeTagsStore, IConnectionProvider $dbProvider, ServiceOptions $serviceOptions, int $revertId, EditResult $editResult)
 
 doUpdate ()
 Marks reverted edits with mw-reverted tag.
 

Public Attributes

const CONSTRUCTOR_OPTIONS = [ MainConfigNames::RevertedTagMaxDepth ]
 

Detailed Description

Adds the mw-reverted tag to reverted edits after a revert is made.

This class is used by RevertedTagUpdateJob to perform the actual update.

Since
1.36
Author
Ostrzyciel

Definition at line 42 of file RevertedTagUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Storage\RevertedTagUpdate::__construct ( RevisionStore $revisionStore,
LoggerInterface $logger,
ChangeTagsStore $changeTagsStore,
IConnectionProvider $dbProvider,
ServiceOptions $serviceOptions,
int $revertId,
EditResult $editResult )
Parameters
RevisionStore$revisionStore
LoggerInterface$logger
ChangeTagsStore$changeTagsStore
IConnectionProvider$dbProvider
ServiceOptions$serviceOptions
int$revertIdID of the revert
EditResult$editResultEditResult object of this revert

Definition at line 86 of file RevertedTagUpdate.php.

References MediaWiki\Config\ServiceOptions\assertRequiredOptions().

Member Function Documentation

◆ doUpdate()

MediaWiki\Storage\RevertedTagUpdate::doUpdate ( )

Marks reverted edits with mw-reverted tag.

Implements MediaWiki\Deferred\DeferrableUpdate.

Definition at line 109 of file RevertedTagUpdate.php.

References MediaWiki\MainConfigNames\RevertedTagMaxDepth, and ChangeTags\TAG_REVERTED.

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Storage\RevertedTagUpdate::CONSTRUCTOR_OPTIONS = [ MainConfigNames::RevertedTagMaxDepth ]
Access: internal

Definition at line 47 of file RevertedTagUpdate.php.


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