MediaWiki master
|
Adds the mw-reverted tag to reverted edits after a revert is made. More...
Inherits MediaWiki\Deferred\DeferrableUpdate.
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 ] |
Adds the mw-reverted tag to reverted edits after a revert is made.
This class is used by RevertedTagUpdateJob to perform the actual update.
Definition at line 42 of file RevertedTagUpdate.php.
MediaWiki\Storage\RevertedTagUpdate::__construct | ( | RevisionStore | $revisionStore, |
LoggerInterface | $logger, | ||
ChangeTagsStore | $changeTagsStore, | ||
IConnectionProvider | $dbProvider, | ||
ServiceOptions | $serviceOptions, | ||
int | $revertId, | ||
EditResult | $editResult ) |
RevisionStore | $revisionStore | |
LoggerInterface | $logger | |
ChangeTagsStore | $changeTagsStore | |
IConnectionProvider | $dbProvider | |
ServiceOptions | $serviceOptions | |
int | $revertId | ID of the revert |
EditResult | $editResult | EditResult object of this revert |
Definition at line 86 of file RevertedTagUpdate.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions().
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.
const MediaWiki\Storage\RevertedTagUpdate::CONSTRUCTOR_OPTIONS = [ MainConfigNames::RevertedTagMaxDepth ] |
Definition at line 47 of file RevertedTagUpdate.php.