1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00
Tims-Chat/file/lib/system/cache/builder/RoomCacheBuilder.class.php

26 lines
719 B
PHP
Raw Normal View History

2011-11-26 15:47:28 +00:00
<?php
2013-01-19 19:36:40 +00:00
namespace chat\system\cache\builder;
2011-11-26 15:47:28 +00:00
/**
* Caches all chat rooms.
*
* @author Tim Düsterhus
2014-02-27 22:05:09 +00:00
* @copyright 2010-2014 Tim Düsterhus
2011-11-26 15:47:28 +00:00
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
2013-01-19 19:36:40 +00:00
* @package be.bastelstu.chat
2011-11-26 15:47:28 +00:00
* @subpackage system.cache.builder
*/
2013-02-16 20:27:56 +00:00
class RoomCacheBuilder extends \wcf\system\cache\builder\AbstractCacheBuilder {
2011-11-26 15:47:28 +00:00
/**
2013-02-04 18:27:03 +00:00
* @see \wcf\system\cache\AbstractCacheBuilder::rebuild()
2011-11-26 15:47:28 +00:00
*/
2013-02-04 18:27:03 +00:00
public function rebuild(array $parameters) {
2011-11-26 15:47:28 +00:00
// get all chat rooms
2013-01-19 19:36:40 +00:00
$roomList = new \chat\data\room\RoomList();
2013-05-23 22:08:33 +00:00
$roomList->sqlOrderBy = "room.showOrder";
2011-11-26 15:47:28 +00:00
$roomList->readObjects();
2012-08-16 09:08:29 +00:00
return $roomList->getObjects();
2011-11-26 15:47:28 +00:00
}
}