MediaWiki
master
UserGroupExpiryJob.php
Go to the documentation of this file.
1
<?php
21
use
MediaWiki\MediaWikiServices
;
22
29
class
UserGroupExpiryJob
extends
Job
implements
GenericParameterJob
{
30
public
function
__construct
( array
$params
) {
31
parent::__construct(
'userGroupExpiry'
,
$params
);
32
$this->removeDuplicates =
true
;
33
}
34
39
public
function
run
() {
40
MediaWikiServices::getInstance()->getUserGroupManager()->purgeExpired();
41
return
true
;
42
}
43
}
$params
array $params
The job parameters.
Definition
UploadJobTrait.php:45
Job
Describe and execute a background job.
Definition
Job.php:41
MediaWiki\MediaWikiServices
Service locator for MediaWiki core services.
Definition
MediaWikiServices.php:241
UserGroupExpiryJob
Job that purges expired user group memberships.
Definition
UserGroupExpiryJob.php:29
UserGroupExpiryJob\__construct
__construct(array $params)
Definition
UserGroupExpiryJob.php:30
UserGroupExpiryJob\run
run()
Run the job.
Definition
UserGroupExpiryJob.php:39
GenericParameterJob
Interface for generic jobs only uses the parameters field and are JSON serializable.
Definition
GenericParameterJob.php:30
includes
user
UserGroupExpiryJob.php
Generated on Fri Oct 11 2024 23:26:53 for MediaWiki by
1.10.0