1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00
Tims-Chat/file/lib/page/ChatPage.class.php

54 lines
1.1 KiB
PHP
Raw Normal View History

2011-11-26 14:17:17 +00:00
<?php
namespace wcf\page;
use \wcf\system\WCF;
2011-11-26 14:17:17 +00:00
/**
* Shows the chat-interface
*
* @author Tim Düsterhus
* @copyright 2010-2011 Tim Düsterhus
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
* @package timwolla.wcf.chat
* @subpackage page
*/
class ChatPage extends AbstractPage {
public $roomID = 0;
//public $neededModules = array('CHAT_ACTIVE');
//public $neededPermissions = array('user.chat.canEnter');
2011-11-26 14:29:28 +00:00
/**
* @see \wcf\page\IPage::assignVariables()
*/
public function assignVariables() {
parent::assignVariables();
WCF::getTPL()->assign(array(
'roomID' => $this->roomID
));
}
/**
* @see \wcf\page\IPage::readData()
*/
public function readData() {
parent::readData();
}
/**
* @see \wcf\page\IPage::readParameters()
*/
public function readParameters() {
parent::readParameters();
if (isset($_GET['id'])) $this->roomID = (int) $_GET['id'];
}
/**
* @see \wcf\page\IPage::show()
2011-11-26 14:29:28 +00:00
*/
public function show() {
\wcf\system\menu\page\PageMenu::getInstance()->setActiveMenuItem('wcf.header.menu.chat');
parent::show();
}
2011-11-26 14:17:17 +00:00
}