* @package be.bastelstu.chat * @subpackage system.cache.builder */ class RoomCacheBuilder extends \wcf\system\cache\builder\AbstractCacheBuilder { /** * @see \wcf\system\cache\AbstractCacheBuilder::rebuild() */ public function rebuild(array $parameters) { // get all chat rooms $roomList = new \chat\data\room\RoomList(); $roomList->sqlOrderBy = "room.position"; $roomList->readObjects(); return $roomList->getObjects(); } }