MediaWiki REL1_40
|
Track info about user edit counts and timings. More...
Public Member Functions | |
__construct (ActorMigration $actorMigration, ILoadBalancer $loadBalancer, JobQueueGroup $jobQueueGroup) | |
clearUserEditCache (UserIdentity $user) | |
getFirstEditTimestamp (UserIdentity $user, int $flags=IDBAccessObject::READ_NORMAL) | |
Get the user's first edit timestamp. | |
getLatestEditTimestamp (UserIdentity $user, int $flags=IDBAccessObject::READ_NORMAL) | |
Get the user's latest edit timestamp. | |
getUserEditCount (UserIdentity $user) | |
Get a user's edit count from the user_editcount field, falling back to initialize. | |
incrementUserEditCount (UserIdentity $user) | |
Schedule a job to increase a user's edit count. | |
initializeUserEditCount (UserIdentity $user) | |
setCachedUserEditCount (UserIdentity $user, int $editCount) | |
Track info about user edit counts and timings.
Definition at line 22 of file UserEditTracker.php.
MediaWiki\User\UserEditTracker::__construct | ( | ActorMigration | $actorMigration, |
ILoadBalancer | $loadBalancer, | ||
JobQueueGroup | $jobQueueGroup ) |
ActorMigration | $actorMigration | |
ILoadBalancer | $loadBalancer | |
JobQueueGroup | $jobQueueGroup |
Definition at line 49 of file UserEditTracker.php.
MediaWiki\User\UserEditTracker::clearUserEditCache | ( | UserIdentity | $user | ) |
UserIdentity | $user |
Definition at line 201 of file UserEditTracker.php.
References MediaWiki\User\UserIdentity\getId(), and MediaWiki\User\UserIdentity\isRegistered().
MediaWiki\User\UserEditTracker::getFirstEditTimestamp | ( | UserIdentity | $user, |
int | $flags = IDBAccessObject::READ_NORMAL ) |
Get the user's first edit timestamp.
UserIdentity | $user | |
int | $flags | bit field, see IDBAccessObject::READ_XXX |
Definition at line 147 of file UserEditTracker.php.
MediaWiki\User\UserEditTracker::getLatestEditTimestamp | ( | UserIdentity | $user, |
int | $flags = IDBAccessObject::READ_NORMAL ) |
Get the user's latest edit timestamp.
UserIdentity | $user | |
int | $flags | bit field, see IDBAccessObject::READ_XXX |
Definition at line 159 of file UserEditTracker.php.
MediaWiki\User\UserEditTracker::getUserEditCount | ( | UserIdentity | $user | ) |
Get a user's edit count from the user_editcount field, falling back to initialize.
UserIdentity | $user |
Definition at line 65 of file UserEditTracker.php.
MediaWiki\User\UserEditTracker::incrementUserEditCount | ( | UserIdentity | $user | ) |
Schedule a job to increase a user's edit count.
UserIdentity | $user |
Definition at line 127 of file UserEditTracker.php.
References MediaWiki\User\UserIdentity\isRegistered().
MediaWiki\User\UserEditTracker::initializeUserEditCount | ( | UserIdentity | $user | ) |
UserIdentity | $user |
Definition at line 99 of file UserEditTracker.php.
MediaWiki\User\UserEditTracker::setCachedUserEditCount | ( | UserIdentity | $user, |
int | $editCount ) |
UserIdentity | $user | |
int | $editCount |
InvalidArgumentException | If the user is not registered |
Definition at line 218 of file UserEditTracker.php.
References MediaWiki\User\UserIdentity\getId(), and MediaWiki\User\UserIdentity\isRegistered().