mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-11-01 14:20:07 +00:00
31 lines
965 B
PHP
31 lines
965 B
PHP
<?php
|
|
namespace chat\system\cronjob;
|
|
use \chat\data;
|
|
|
|
/**
|
|
* Vaporizes unneeded data.
|
|
*
|
|
* @author Tim Düsterhus
|
|
* @copyright 2010-2013 Tim Düsterhus
|
|
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
|
* @package be.bastelstu.chat
|
|
* @subpackage system.cronjob
|
|
*/
|
|
class CleanupCronjob implements \wcf\system\cronjob\ICronjob {
|
|
/**
|
|
* @see wcf\system\ICronjob::execute()
|
|
*/
|
|
public function execute(\wcf\data\cronjob\Cronjob $cronjob) {
|
|
$messageAction = new data\message\MessageAction(array(), 'prune');
|
|
$messageAction->executeAction();
|
|
$roomAction = new data\room\RoomAction(array(), 'prune');
|
|
$roomAction->executeAction();
|
|
$suspensionAction = new data\suspension\SuspensionAction(array(), 'prune');
|
|
$suspensionAction->executeAction();
|
|
|
|
// kill dead users
|
|
$roomAction = new data\room\RoomAction(array(), 'removeDeadUsers');
|
|
$roomAction->executeAction();
|
|
}
|
|
}
|