MediaWiki
REL1_39
UserGroupExpiryJob.php
Go to the documentation of this file.
1
<?php
2
3
use
MediaWiki\MediaWikiServices
;
4
27
class
UserGroupExpiryJob
extends
Job
implements
GenericParameterJob
{
28
public
function
__construct
( array $params ) {
29
parent::__construct(
'userGroupExpiry'
, $params );
30
$this->removeDuplicates =
true
;
31
}
32
37
public
function
run
() {
38
MediaWikiServices::getInstance()->getUserGroupManager()->purgeExpired();
39
return
true
;
40
}
41
}
Job
Class to both describe a background job and handle jobs.
Definition
Job.php:39
MediaWiki\MediaWikiServices
Service locator for MediaWiki core services.
Definition
MediaWikiServices.php:212
UserGroupExpiryJob
Definition
UserGroupExpiryJob.php:27
UserGroupExpiryJob\__construct
__construct(array $params)
Definition
UserGroupExpiryJob.php:28
UserGroupExpiryJob\run
run()
Run the job.
Definition
UserGroupExpiryJob.php:37
GenericParameterJob
Interface for generic jobs only uses the parameters field and are JSON serializable.
Definition
GenericParameterJob.php:31
includes
jobqueue
jobs
UserGroupExpiryJob.php
Generated on Mon Dec 23 2024 06:23:33 for MediaWiki by
1.10.0