1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-24 22:00:09 +00:00
Tims-Chat/file/lib/system/cache/builder/RoomCacheBuilder.class.php
2013-01-19 20:36:40 +01:00

26 lines
715 B
PHP

<?php
namespace chat\system\cache\builder;
/**
* Caches all chat rooms.
*
* @author Tim Düsterhus
* @copyright 2010-2013 Tim Düsterhus
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
* @package be.bastelstu.chat
* @subpackage system.cache.builder
*/
class RoomCacheBuilder implements \wcf\system\cache\builder\ICacheBuilder {
/**
* @see \wcf\system\cache\ICacheBuilder::getData()
*/
public function getData(array $cacheResource) {
// get all chat rooms
$roomList = new \chat\data\room\RoomList();
$roomList->sqlOrderBy = "chat_room.position";
$roomList->readObjects();
return $roomList->getObjects();
}
}