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.
|
2014-02-28 16:06:50 +00:00
|
|
|
*
|
2012-05-19 19:25:50 +00:00
|
|
|
* @author Tim Düsterhus
|
2014-02-27 22:05:09 +00:00
|
|
|
* @copyright 2010-2014 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
|
|
|
}
|
|
|
|
}
|