Public Member Functions | |
| ilChatController ($a_ref_id) | |
| Constructor public. | |
| setRefId ($a_ref_id) | |
| getRefId () | |
| execute () | |
| __getCommand () | |
Data Fields | |
| $gui_obj | |
| $ref_id | |
| $cmd | |
Definition at line 35 of file class.ilChatController.php.
| ilChatController::__getCommand | ( | ) |
Definition at line 84 of file class.ilChatController.php.
Referenced by ilChatController().
{
if($_GET["cmd"] == 'gateway')
{
if(is_array($_POST["cmd"]))
{
$_GET["cmd"] = key($_POST["cmd"]);
}
// Workaround for Internet Explorer (IE). If a user presses
// the Enter in the message input field, IE does not send a
// "cmd" parameter. We fill in the command "input", because
// we can safely assume that the user intended to post the
// message.
else if (! $_POST["cmd"] && $_POST["message"])
{
$_GET["cmd"] = 'input';
}
else
{
$_GET["cmd"] = 'cancel';
}
}
if($_GET["cmd"])
{
$this->cmd = $_GET["cmd"];
}
else
{
$this->cmd = "showFrames";
}
}
Here is the caller graph for this function:| ilChatController::execute | ( | ) |
Definition at line 77 of file class.ilChatController.php.
References $cmd.
{
$cmd = $this->cmd;
$this->gui_obj->$cmd();
}
| ilChatController::getRefId | ( | ) |
Definition at line 72 of file class.ilChatController.php.
{
return $this->ref_id;
}
| ilChatController::ilChatController | ( | $ | a_ref_id | ) |
Constructor public.
| integer | reference_id |
Definition at line 47 of file class.ilChatController.php.
References $_GET, $_REQUEST, $_SESSION, __getCommand(), and sendInfo().
{
define("ILIAS_MODULE","chat");
$this->ref_id = (int) $a_ref_id;
$this->gui_obj =& new ilObjChatGUI(array(),$a_ref_id,true,false);
$this->gui_obj->object->chat_room->setRoomId((int) $_REQUEST["room_id"]);
$this->gui_obj->object->chat_room->setUserId($_SESSION["AccountId"]);
// CHECK HACK
if(!$this->gui_obj->object->chat_room->checkAccess())
{
unset($_REQUEST["room_id"]);
unset($_REQUEST["message"]);
sendInfo("You are not entitled to view this room",true);
}
$this->gui_obj->object->server_comm->setRecipientId((int) $_GET["p_id"]);
$this->__getCommand();
}
Here is the call graph for this function:| ilChatController::setRefId | ( | $ | a_ref_id | ) |
Definition at line 68 of file class.ilChatController.php.
{
$this->ref_id = $a_ref_id;
}
| ilChatController::$cmd |
Definition at line 40 of file class.ilChatController.php.
Referenced by execute().
| ilChatController::$gui_obj |
Definition at line 37 of file class.ilChatController.php.
| ilChatController::$ref_id |
Definition at line 39 of file class.ilChatController.php.
1.7.1