mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-11-01 14:20:07 +00:00
26 lines
719 B
PHP
26 lines
719 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 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.showOrder";
|
|
$roomList->readObjects();
|
|
|
|
return $roomList->getObjects();
|
|
}
|
|
}
|