MediaWiki  master
UserGroupExpiryJob.php
Go to the documentation of this file.
1 <?php
24 class UserGroupExpiryJob extends Job implements GenericParameterJob {
25  public function __construct( array $params ) {
26  parent::__construct( 'userGroupExpiry', $params );
27  $this->removeDuplicates = true;
28  }
29 
34  public function run() {
36 
37  return true;
38  }
39 }
UserGroupMembership\purgeExpired
static purgeExpired()
Purge expired memberships from the user_groups table.
Definition: UserGroupMembership.php:245
Job\$params
array $params
Array of job parameters.
Definition: Job.php:35
Job
Class to both describe a background job and handle jobs.
Definition: Job.php:30
UserGroupExpiryJob
Definition: UserGroupExpiryJob.php:24
UserGroupExpiryJob\run
run()
Run the job.
Definition: UserGroupExpiryJob.php:34
GenericParameterJob
Interface for generic jobs only uses the parameters field and are JSON serializable.
Definition: GenericParameterJob.php:29
UserGroupExpiryJob\__construct
__construct(array $params)
Definition: UserGroupExpiryJob.php:25