MediaWiki REL1_37
MediaWiki\Storage\RevertedTagUpdateManager Class Reference

Class for managing delayed RevertedTagUpdateJob waiting for user approval. More...

Collaboration diagram for MediaWiki\Storage\RevertedTagUpdateManager:

Public Member Functions

 __construct (EditResultCache $editResultCache, JobQueueGroup $jobQueueGroup)
 
 approveRevertedTagForRevision (int $revertRevisionId)
 Enqueue a RevertedTagUpdateJob for the given revision, if needed.
 

Private Attributes

EditResultCache $editResultCache
 
JobQueueGroup $jobQueueGroup
 

Detailed Description

Class for managing delayed RevertedTagUpdateJob waiting for user approval.

This is intended to be used by the patrol subsystem and various content management extensions.

Since
1.36

Definition at line 36 of file RevertedTagUpdateManager.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Storage\RevertedTagUpdateManager::__construct ( EditResultCache  $editResultCache,
JobQueueGroup  $jobQueueGroup 
)
Parameters
EditResultCache$editResultCache
JobQueueGroup$jobQueueGroup

Definition at line 48 of file RevertedTagUpdateManager.php.

References MediaWiki\Storage\RevertedTagUpdateManager\$editResultCache, and MediaWiki\Storage\RevertedTagUpdateManager\$jobQueueGroup.

Member Function Documentation

◆ approveRevertedTagForRevision()

MediaWiki\Storage\RevertedTagUpdateManager::approveRevertedTagForRevision ( int  $revertRevisionId)

Enqueue a RevertedTagUpdateJob for the given revision, if needed.

Call this when the user "approves" the edit.

This method is also called whenever the edit is patrolled or autopatrolled.

Parameters
int$revertRevisionId
Returns
bool Whether the update was enqueued successfully

Definition at line 66 of file RevertedTagUpdateManager.php.

Member Data Documentation

◆ $editResultCache

EditResultCache MediaWiki\Storage\RevertedTagUpdateManager::$editResultCache
private

◆ $jobQueueGroup

JobQueueGroup MediaWiki\Storage\RevertedTagUpdateManager::$jobQueueGroup
private

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