* @package timwolla.wcf.chat * @subpackage system.cache.builder */ class ChatRoomCacheBuilder implements ICacheBuilder { /** * @see \wcf\system\cache\ICacheBuilder::getData() */ public function getData(array $cacheResource) { // get all chat rooms $roomList = new \wcf\data\chat\room\ChatRoomList(); $roomList->sqlOrderBy = "chat_room.position"; $roomList->sqlLimit = 0; $roomList->readObjects(); return $roomList; } }