2012-05-19 19:25:50 +00:00
|
|
|
<?php
|
2013-01-19 19:36:40 +00:00
|
|
|
namespace chat\data\suspension;
|
2012-05-19 19:25:50 +00:00
|
|
|
use \wcf\system\WCF;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Provides functions to edit chat suspensions.
|
|
|
|
*
|
|
|
|
* @author Tim Düsterhus
|
2013-01-19 19:36:40 +00:00
|
|
|
* @copyright 2010-2013 Tim Düsterhus
|
2012-05-19 19:25:50 +00:00
|
|
|
* @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
|
2012-05-19 19:25:50 +00:00
|
|
|
* @subpackage data.chat.suspension
|
|
|
|
*/
|
2013-01-19 19:36:40 +00:00
|
|
|
class SuspensionEditor extends \wcf\data\DatabaseObjectEditor implements \wcf\data\IEditableCachedObject {
|
2012-05-19 19:25:50 +00:00
|
|
|
/**
|
|
|
|
* @see \wcf\data\DatabaseObjectDecorator::$baseClass
|
|
|
|
*/
|
2013-01-19 19:36:40 +00:00
|
|
|
protected static $baseClass = '\chat\data\suspension\Suspension';
|
2012-05-19 19:25:50 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears the suspension cache.
|
|
|
|
*/
|
|
|
|
public static function resetCache() {
|
|
|
|
$ush = \wcf\system\user\storage\UserStorageHandler::getInstance();
|
|
|
|
|
2013-05-24 15:30:27 +00:00
|
|
|
$ush->resetAll('chatSuspensions');
|
2012-05-19 19:25:50 +00:00
|
|
|
}
|
|
|
|
}
|