* @package be.bastelstu.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->readObjects(); return $roomList->getObjects(); } }