1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-09 00:20:08 +00:00

Improve ACP pages / forms

This commit is contained in:
Tim Düsterhus 2013-01-07 20:34:18 +01:00
parent 335fa0ea7a
commit a5d61acdf0
2 changed files with 7 additions and 12 deletions

View File

@ -13,9 +13,9 @@
* @package be.bastelstu.wcf.chat
* @subpackage acp.form
*/
class ChatRoomAddForm extends ACPForm {
class ChatRoomAddForm extends \wcf\form\AbstractForm {
/**
* @see \wcf\acp\form\ACPForm::$activeMenuItem
* @see \wcf\acp\page\AbstractPage::$activeMenuItem
*/
public $activeMenuItem = 'wcf.acp.menu.link.chat.room.add';

View File

@ -11,6 +11,11 @@
* @subpackage acp.page
*/
class ChatRoomListPage extends \wcf\page\MultipleLinkPage {
/**
* @see \wcf\page\AbstractPage::$activeMenuItem
*/
public $activeMenuItem = 'wcf.acp.menu.link.chat.room.list';
/**
* @see \wcf\page\AbstractPage::$neededPermissions
*/
@ -33,14 +38,4 @@ class ChatRoomListPage extends \wcf\page\MultipleLinkPage {
* @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();
}
}