mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-24 22:00:09 +00:00
47 lines
1.1 KiB
PHP
47 lines
1.1 KiB
PHP
<?php
|
|
namespace wcf\acp\page;
|
|
|
|
/**
|
|
* Lists available chatrooms.
|
|
*
|
|
* @author Tim Düsterhus
|
|
* @copyright 2010-2012 Tim Düsterhus
|
|
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
|
* @package timwolla.wcf.chat
|
|
* @subpackage acp.page
|
|
*/
|
|
class ChatRoomListPage extends \wcf\page\MultipleLinkPage {
|
|
/**
|
|
* @see wcf\page\AbstractPage::$neededPermissions
|
|
*/
|
|
public $neededPermissions = array(
|
|
'admin.content.chat.canEditRoom',
|
|
'admin.content.chat.canDeleteRoom'
|
|
);
|
|
|
|
/**
|
|
* @see wcf\page\MultipleLinkPage::$objectListClassName
|
|
*/
|
|
public $objectListClassName = '\wcf\data\chat\room\ChatRoomList';
|
|
|
|
/**
|
|
* @see wcf\page\MultipleLinkPage::$sortField
|
|
*/
|
|
public $sortField = 'position';
|
|
|
|
/**
|
|
* @see wcf\page\MultipleLinkPage::$sortOrder
|
|
*/
|
|
public $sortOrder = 'ASC';
|
|
|
|
/**
|
|
* @see wcf\page\IPage::show()
|
|
*/
|
|
public function show() {
|
|
// set active menu item.
|
|
\wcf\system\menu\acp\ACPMenu::getInstance()->setActiveMenuItem('wcf.acp.menu.link.chat.room.list');
|
|
|
|
parent::show();
|
|
}
|
|
}
|