MediaWiki  1.33.0
UserEditCountUpdate Class Reference

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

Inheritance diagram for UserEditCountUpdate:
Collaboration diagram for UserEditCountUpdate:

Public Member Functions

 __construct (User $user, $increment)
 
 doUpdate ()
 Purges the list of URLs passed to the constructor. More...
 
 merge (MergeableUpdate $update)
 Merge this update with $update. More...
 

Private Attributes

array[] $infoByUser
 Map of (user ID => ('increment': int, 'instances': User[])) More...
 

Detailed Description

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

Definition at line 29 of file UserEditCountUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

UserEditCountUpdate::__construct ( User  $user,
  $increment 
)
Parameters
User$user
int$increment

Definition at line 37 of file UserEditCountUpdate.php.

References $user.

Member Function Documentation

◆ doUpdate()

UserEditCountUpdate::doUpdate ( )

Purges the list of URLs passed to the constructor.

Implements DeferrableUpdate.

Definition at line 68 of file UserEditCountUpdate.php.

References $dbr, $fname, as, DB_MASTER, DB_REPLICA, and use.

◆ merge()

UserEditCountUpdate::merge ( MergeableUpdate  $update)

Merge this update with $update.

Parameters
MergeableUpdate$updateUpdate of the same class type

Implements MergeableUpdate.

Definition at line 46 of file UserEditCountUpdate.php.

References $user, and as.

Member Data Documentation

◆ $infoByUser

array [] UserEditCountUpdate::$infoByUser
private

Map of (user ID => ('increment': int, 'instances': User[]))

Definition at line 31 of file UserEditCountUpdate.php.


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