24require_once __DIR__ .
'/Maintenance.php';
45 parent::__construct();
46 $this->
addDescription(
'Move expired userrights from user_groups to former_user_groups table.' );
50 $this->
output(
"Purging expired user rights...\n" );
52 if ( $res ===
false ) {
53 $this->
output(
"Purging failed.\n" );
55 $this->
output(
"$res rows purged.\n" );
62require_once RUN_MAINTENANCE_IF_MAIN;
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
output( $out, $channel=null)
Throw some output to the user.
getServiceContainer()
Returns the main service container.
addDescription( $text)
Set the description text.
execute()
Do the actual work.
__construct()
Default constructor.