MediaWiki master
MediaWiki\Deferred\UserEditCountUpdate Class Reference

Handles increment the edit count for a given set of users. More...

Inherits MediaWiki\Deferred\DeferrableUpdate, and MediaWiki\Deferred\MergeableUpdate.

Collaboration diagram for MediaWiki\Deferred\UserEditCountUpdate:

Public Member Functions

 __construct (UserIdentity $user, $increment)
 
 doUpdate ()
 Commits the provided user edit count increments to the database.
 
 merge (MergeableUpdate $update)
 Merge this enqueued update with a new MergeableUpdate of the same qualified class name.
 

Detailed Description

Handles increment the edit count for a given set of users.

Definition at line 35 of file UserEditCountUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Deferred\UserEditCountUpdate::__construct ( UserIdentity $user,
$increment )
Parameters
UserIdentity$user
int$increment

Definition at line 47 of file UserEditCountUpdate.php.

References MediaWiki\User\UserIdentity\getId().

Member Function Documentation

◆ doUpdate()

MediaWiki\Deferred\UserEditCountUpdate::doUpdate ( )

Commits the provided user edit count increments to the database.

Implements MediaWiki\Deferred\DeferrableUpdate.

Definition at line 73 of file UserEditCountUpdate.php.

References DB_PRIMARY, DB_REPLICA, and MediaWiki\MediaWikiServices\getInstance().

◆ merge()

MediaWiki\Deferred\UserEditCountUpdate::merge ( MergeableUpdate $update)

Merge this enqueued update with a new MergeableUpdate of the same qualified class name.

Parameters
MergeableUpdate$updateThe new update (having the same class)

Implements MediaWiki\Deferred\MergeableUpdate.

Definition at line 56 of file UserEditCountUpdate.php.


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