Chat presentation GUI handler.
More...
Detailed Description
Chat presentation GUI handler.
- Version
- $Id$
ilChatPresentationGUI: ilObjChatGUI
Definition at line 32 of file class.ilChatPresentationGUI.php.
Constructor & Destructor Documentation
ilChatPresentationGUI::__construct |
( |
| ) |
|
Member Function Documentation
& ilChatPresentationGUI::executeCommand |
( |
| ) |
|
execute command
Definition at line 44 of file class.ilChatPresentationGUI.php.
References $_GET, $_POST, $_SESSION, $cmd, $ilCtrl, $lng, $param, $ret, $tpl, exit, ilUtil\sendInfo(), and ilUtil\stripSlashes().
{
$next_class = $ilCtrl->getNextClass($this);
$cmd = $ilCtrl->getCmd();
if ($next_class == "")
{
$ilCtrl->setCmdClass("ilobjchatgui");
if(
$cmd ==
'') $ilCtrl->setCmd(
"showFrames");
$next_class = $ilCtrl->getNextClass($this);
}
{
$_REQUEST[
'room_id'] = (int)substr(
$param, strrpos(
$param,
'_') + 1);
}
if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
{
$ilNavigationHistory->addItem(
$_GET[
"ref_id"],
"ilias.php?baseClass=ilChatPresentationGUI&cmd=infoScreen&ref_id=".
$_GET[
"ref_id"],
"chat");
}
switch ($next_class)
{
case 'ilobjchatgui':
include_once("./Modules/Chat/classes/class.ilObjChatGUI.php");
$chat_gui->object->chat_room->setRoomId((int) $_REQUEST["room_id"]);
$chat_gui->object->chat_room->setUserId(
$_SESSION[
"AccountId"]);
if(!$chat_gui->object->chat_room->checkAccess())
{
unset($_REQUEST["room_id"]);
unset($_REQUEST["message"]);
}
if(!$chat_gui->object->server_conf->getActiveStatus())
{
$tmp_tpl =
new ilTemplate(
'tpl.chat_srv_off_redirect_js.html',
true,
true,
'Modules/Chat');
$tmp_tpl->setVariable(
'OPENER_LOCATION',
'goto.php?target=chat_'.(
int)
$_GET[
'ref_id'].
'&client_id='.CLIENT_ID);
echo $tmp_tpl->get();
}
$chat_gui->object->server_comm->setRecipientId((
int)
$_GET[
"p_id"]);
$ret = $ilCtrl->forwardCommand($chat_gui);
break;
}
$tpl->show();
}
The documentation for this class was generated from the following file: