use wcf\data\language\item\LanguageItemEditor;
use wcf\data\language\item\LanguageItemList;
use wcf\data\DatabaseObjectEditor;
+use wcf\data\IEditableCachedObject;
use wcf\system\cache\CacheHandler;
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\exception\SystemException;
* @subpackage data.language
* @category Community Framework
*/
-class LanguageEditor extends DatabaseObjectEditor {
+class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @see wcf\data\DatabaseObjectDecorator::$baseClass
*/
$statement->execute($statementParameters);
}
}
+
+ /**
+ * @see wcf\data\IEditableCachedObject::resetCache()
+ */
+ public static function resetCache() {
+ LanguageFactory::getInstance()->clearCache();
+ }
}