From f57d178654cb7d590846fcb240b6da3cae10ff0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 27 Nov 2011 20:20:13 +0100 Subject: [PATCH] Adding ChatRoomEditor --- .../data/chat/room/ChatRoomEditor.class.php | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 file/lib/data/chat/room/ChatRoomEditor.class.php diff --git a/file/lib/data/chat/room/ChatRoomEditor.class.php b/file/lib/data/chat/room/ChatRoomEditor.class.php new file mode 100644 index 0000000..4b7a348 --- /dev/null +++ b/file/lib/data/chat/room/ChatRoomEditor.class.php @@ -0,0 +1,47 @@ + + * @package timwolla.wcf.chat + * @subpackage data.chat.room + */ +class ChatRoomEditor extends \wcf\data\DatabaseObjectEditor { + /** + * @see wcf\data\DatabaseObjectDecorator::$baseClass + */ + protected static $baseClass = '\wcf\data\chat\room\ChatRoom'; + + /** + * @see wcf\data\IEditableObject::create() + */ + public static function create(array $parameters = array()) { + $room = parent::create($parameters); + + self::clearCache(); + + return $room; + } + + /** + * @see wcf\data\IEditableObject::update() + */ + public function update(array $parameters = array()) { + parent::update($parameters); + + self::clearCache(); + } + + /** + * @see wcf\data\IEditableObject::update() + */ + public static function deleteAll(array $objectIDs = array()) { + parent::deleteAll($objectIDs); + + self::clearCache(); + } +}