1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-26 22:20:08 +00:00
Tims-Chat/file/lib/data/suspension/SuspensionEditor.class.php

29 lines
811 B
PHP
Raw Normal View History

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();
$ush->resetAll('suspensions');
2012-05-19 19:25:50 +00:00
}
}