* @package be.bastelstu.chat * @subpackage acp.page */ class RoomListPage extends \wcf\page\AbstractPage { /** * @see \wcf\page\AbstractPage::$activeMenuItem */ public $activeMenuItem = 'chat.acp.menu.link.room.list'; /** * @see \wcf\page\AbstractPage::$neededPermissions */ public $neededPermissions = array( 'admin.chat.canEditRoom', 'admin.chat.canDeleteRoom' ); /** * room list * @var \chat\data\room\RoomListPage */ public $objects = null; /** * @see \wcf\page\IPage::readData() */ public function readData() { parent::readData(); $this->objects = new \chat\data\room\RoomList(); $this->objects->sqlOrder = 'position ASC'; $this->objects->readObjects(); } /** * @see wcf\page\IPage::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array( 'objects' => $this->objects )); } }