38 parent::__construct(
'userEditCountInit', $params );
39 $this->removeDuplicates =
true;
42 public function run() {
43 $lb = MediaWikiServices::getInstance()->getDBLoadBalancer();
49 [
'user_editcount' => $this->params[
'editCount'] ],
52 'user_id' => $this->params[
'userId'],
53 'user_editcount IS NULL OR user_editcount < ' . $dbw->addQuotes( $this->params[
'editCount'] )
Class to both describe a background job and handle jobs.
Job that initializes an user's edit count if it's not yet set or the current value is outdated.
__construct(array $params)
Interface for generic jobs only uses the parameters field and are JSON serializable.