27 parent::__construct(
'userEditCountInit', $params );
28 $this->removeDuplicates =
true;
32 public function run() {
33 $dbw = MediaWikiServices::getInstance()->getConnectionProvider()->getPrimaryDatabase();
35 $dbw->newUpdateQueryBuilder()
37 ->set( [
'user_editcount' => $this->params[
'editCount'] ] )
39 'user_id' => $this->params[
'userId'],
40 $dbw->expr(
'user_editcount',
'=',
null )->or(
'user_editcount',
'<', $this->params[
'editCount'] )
42 ->caller( __METHOD__ )->execute();
Job that initializes an user's edit count.
run()
Run the job.If this method returns false or completes exceptionally, the job runner will retry execut...
__construct(array $params)