2012-03-08 21:07:46 +00:00
|
|
|
<?php
|
|
|
|
namespace wcf\system\cronjob;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Vaporizes unneeded data.
|
|
|
|
*
|
|
|
|
* @author Tim Düsterhus
|
|
|
|
* @copyright 2010-2012 Tim Düsterhus
|
|
|
|
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
2012-03-12 16:18:15 +00:00
|
|
|
* @package be.bastelstu.wcf.chat
|
2012-03-08 21:07:46 +00:00
|
|
|
* @subpackage system.cronjob
|
|
|
|
*/
|
|
|
|
class ChatCleanupCronjob implements ICronjob {
|
|
|
|
/**
|
|
|
|
* @see wcf\system\ICronjob::execute()
|
|
|
|
*/
|
|
|
|
public function execute(\wcf\data\cronjob\Cronjob $cronjob) {
|
|
|
|
\wcf\data\chat\message\ChatMessageEditor::prune();
|
|
|
|
\wcf\data\chat\room\ChatRoomEditor::prune();
|
|
|
|
}
|
|
|
|
}
|