MediaWiki REL1_33
UserGroupExpiryJob.php
Go to the documentation of this file.
1<?php
24class UserGroupExpiryJob extends Job {
25 public function __construct( $params = [] ) {
26 parent::__construct( 'userGroupExpiry', Title::newMainPage(), $params );
27 $this->removeDuplicates = true;
28 }
29
34 public function run() {
35 UserGroupMembership::purgeExpired();
36
37 return true;
38 }
39}
Class to both describe a background job and handle jobs.
Definition Job.php:30
array $params
Array of job parameters.
Definition Job.php:35