23 require_once
"Modules/Chat/classes/class.ilObjChatGUI.php";
47 $this->ref_id = (int) $a_ref_id;
48 $this->gui_obj =&
new ilObjChatGUI(array(),$a_ref_id,
true,
false);
49 $this->gui_obj->object->chat_room->setRoomId((
int) $_REQUEST[
"room_id"]);
50 $this->gui_obj->object->chat_room->setUserId(
$_SESSION[
"AccountId"]);
53 if(!$this->gui_obj->object->chat_room->checkAccess())
55 unset($_REQUEST[
"room_id"]);
56 unset($_REQUEST[
"message"]);
59 $this->gui_obj->object->server_comm->setRecipientId((
int)
$_GET[
"p_id"]);
66 $this->ref_id = $a_ref_id;
76 $this->gui_obj->$cmd();
82 if(
$_GET[
"cmd"] ==
'gateway')
84 if(is_array($_POST[
"cmd"]))
86 $_GET[
"cmd"] = key($_POST[
"cmd"]);
93 else if (! $_POST[
"cmd"] && $_POST[
"message"])
95 $_GET[
"cmd"] =
'input';
99 $_GET[
"cmd"] =
'cancel';
105 $this->cmd =
$_GET[
"cmd"];
109 $this->cmd =
"showFrames";
114 $this->cmd =
'deliverVCard';