MediaWiki
REL1_31
UserGroupExpiryJob.php
Go to the documentation of this file.
1
<?php
24
class
UserGroupExpiryJob
extends
Job
{
25
public
function
__construct
(
$params
=
false
) {
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
}
Job
Class to both describe a background job and handle jobs.
Definition
Job.php:31
Job\$params
array $params
Array of job parameters.
Definition
Job.php:36
UserGroupExpiryJob
Definition
UserGroupExpiryJob.php:24
UserGroupExpiryJob\__construct
__construct( $params=false)
Definition
UserGroupExpiryJob.php:25
UserGroupExpiryJob\run
run()
Run the job.
Definition
UserGroupExpiryJob.php:34
includes
jobqueue
jobs
UserGroupExpiryJob.php
Generated on Mon Nov 25 2024 15:34:56 for MediaWiki by
1.10.0