1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-25 22:10:08 +00:00
Tims-Chat/file/lib/system/cronjob/CleanupCronjob.class.php

31 lines
965 B
PHP
Raw Normal View History

<?php
2013-01-19 19:36:40 +00:00
namespace chat\system\cronjob;
use \chat\data;
/**
* Vaporizes unneeded data.
*
* @author Tim Düsterhus
2013-01-19 19:36:40 +00:00
* @copyright 2010-2013 Tim Düsterhus
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
2013-01-19 19:36:40 +00:00
* @package be.bastelstu.chat
* @subpackage system.cronjob
*/
2013-01-27 16:27:47 +00:00
class CleanupCronjob implements \wcf\system\cronjob\ICronjob {
/**
* @see wcf\system\ICronjob::execute()
*/
public function execute(\wcf\data\cronjob\Cronjob $cronjob) {
2013-01-19 19:36:40 +00:00
$messageAction = new data\message\MessageAction(array(), 'prune');
2012-05-19 18:33:25 +00:00
$messageAction->executeAction();
2013-01-19 19:36:40 +00:00
$roomAction = new data\room\RoomAction(array(), 'prune');
2012-05-19 18:33:25 +00:00
$roomAction->executeAction();
2013-01-19 19:36:40 +00:00
$suspensionAction = new data\suspension\SuspensionAction(array(), 'prune');
$suspensionAction->executeAction();
// kill dead users
2013-05-03 18:02:18 +00:00
$roomAction = new data\room\RoomAction(array(), 'removeDeadUsers');
$roomAction->executeAction();
}
}