1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-19 01:30:41 +00:00
Tims-Chat/file/lib/system/cache/builder/RoomCacheBuilder.class.php

26 lines
719 B
PHP
Raw Normal View History

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