ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjChatGUI Class Reference

Class ilObjChatGUI. More...

+ Inheritance diagram for ilObjChatGUI:
+ Collaboration diagram for ilObjChatGUI:

Public Member Functions

 ilObjChatGUI ($a_data, $a_id, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
executeCommand ()
 execute command
 cancelObject ()
 Cancel.
 addAdminLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded)
 setTargetScript ($a_script)
 getTargetScript ($a_params)
 setInModule ($in_module)
 inModule ()
 saveObject ()
 save object
 blockedUsersObject ()
 blockUserObject ()
 unblockUsersObject ()
 kickUserObject ()
 unkickUserObject ()
 viewObject ()
 list childs of current object
 adminRoomsObject ()
 emptyRoomObject ()
 deleteRoomObject ()
 confirmedDeleteRoomObject ()
 addPrivateRoomObject ()
 addRoomObject ()
 renameRoomObject ()
 adminAddRoomObject ()
 recordingsObject ()
 askDeleteRecordingsObject ()
 deleteRecordingsObject ()
 exportRecordingObject ()
 startRecordingObject ()
 stopRecordingObject ()
 showFramesObject ()
 Show top frameset.
 showUserFrameObject ()
 Show user frame.
 showTopFrameObject ()
 showInputFrameObject ()
 showRightFrameObject ()
 cancel ()
 cancelAddressOrWhisperModeObject ()
 inputObject ()
 inviteObject ()
 invitePDObject ()
 dropObject ()
 closeFrame ()
 exportObject ()
 __showOnlineUsers ()
 __showActiveUsers ()
 __showAdminAddRoomSelect ()
 __showAdminRoomSelect ()
 __showRooms ()
 __loadStylesheet ($expires=false)
 __getColorSelect ()
 __getFontType ()
 __getFontFace ()
 __formatMessage ()
 __exportRooms ()
 getTabs (&$tabs_gui)
 get tabs public
 __prepareOutput ()
 __setHeader ()
 __setLocator ()
 _goto ($a_target)
 showUserProfileObject ()
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded)
 infoScreenObject ()
 this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed
 infoScreen ()
 show information screen
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not)
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui
 getCreationMode ()
 get creation mode
 assignObject ()
 prepareOutput ()
 prepare output
 setTitleAndDescription ()
 called by prepare output
 showUpperIcon ()
 showMountWebfolderIcon ()
 setTabs ()
 set admin tabs public
 setAdminTabs ()
 set admin tabs public
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder
 getHTML ()
 setActions ($a_actions="")
 set possible actions for objects in list.
 setSubObjects ($a_sub_objects="")
 set possible subobjects for this object.
 setLocator ()
 set Locator
 omitLocator ($a_omit=true)
 undeleteObject ()
 get object back from trash
 insertSavedNodes ($a_source_id, $a_dest_id, $a_tree_id, &$a_affected_ids)
 recursive method to insert all saved nodes of the clipboard (maybe this function could be moved to a rbac class ?)
 confirmedDeleteObject ()
 confirmed deletion if object -> objects are moved to trash
 cancelDeleteObject ()
 cancel deletion of object
 removeFromSystemObject ()
 remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method
 removeDeletedNodes ($a_node_id, $a_checked, $a_delete_objects, &$a_affected_ids)
 remove already deleted objects within the objects in trash recursive function
 createObject ()
 create new object form
 cancelObject ($in_rep=false)
 cancel action and go back to previous page public
 importObject ()
 import new object form
 editObject ()
 edit object
 displayEditForm ($fields)
 display edit form (usually called by editObject)
 updateObject ()
 updates object entry in object_data
 afterUpdate ()
 permObject ()
 show permissions of current node
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g.
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g.
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g.
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command
 permSaveObject ()
 save permissions
 isVisible ($a_ref_id, $a_type)
 displayList ()
 display object list
 deleteObject ($a_error=false)
 display deletion confirmation screen only for referenced objects.
 trashObject ()
 show trash content of object
 addRoleObject ()
 adds a local role This method is only called when choose the option 'you may add local roles'.
 showActions ($with_subobjects=false)
 show possible action (form buttons)
 getActions ()
 Get Actions.
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu)
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl.
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste
 __showButton ($a_cmd, $a_text, $a_target= '')
 hitsperpageObject ()
__initTableGUI ()
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table
 __showClipboardTable ($a_result_set, $a_from="")
 infoObject ()
 __buildRoleFilterSelect ()
 __filterRoles ($a_roles, $a_filter)
 ownerObject ()
 changeOwnerObject ()
 redirectToRefId ($a_ref_id, $a_cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning.
 fillCloneSearchTemplate ($a_tpl_varname, $a_type)
 Add an object search in case the number of existing objects is too big to offer a selection list.
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI.
 copyWizardHasOptions ($a_mode)
 Check if there is any modules specific option.
 getCenterColumnHTML ()
 Get center column.
 getRightColumnHTML ()
 Display right column.
 setColumnSettings ($column_gui)
 May be overwritten in subclasses.
 checkPermission ($a_perm, $a_cmd="")

Data Fields

 $target_script = "adm_object.php"
 $in_module = false
- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 $ilias
 $objDefinition
 $tpl
 $tree
 $lng
 $data
 $object
 $ref_id
 $obj_id
 $maxcount
 $formaction
 $return_location
 $target_frame
 $tab_target_script
 $actions
 $sub_objects
 $omit_locator = false

Additional Inherited Members

- Protected Member Functions inherited from ilObjectGUI
 searchCloneSourceObject ()
 Search clone source by title.
 buildCloneSelect ($existing_objs)
 Build a select box for clonable objects (permission write)

Detailed Description

Member Function Documentation

ilObjChatGUI::__exportRooms ( )

Definition at line 1975 of file class.ilObjChatGUI.php.

References ilUtil\deliverFile(), and exportObject().

Referenced by adminRoomsObject().

{
include_once "Modules/Chat/classes/class.ilFileDataChat.php";
if(count($_POST["del_id"]) == 1)
{
$this->object->chat_room->setRoomId($_POST["del_id"][0]);
$this->exportObject();
}
$file_obj =& new ilFileDataChat($this->object);
foreach($_POST["del_id"] as $id)
{
$this->object->chat_room->setRoomId((int) $id);
$tmp_tpl =& new ilTemplate("tpl.chat_export.html",true,true,"Modules/Chat");
if($id)
{
$tmp_tpl->setVariable("CHAT_NAME",$this->object->chat_room->getTitle());
}
else
{
$tmp_tpl->setVariable("CHAT_NAME",$this->object->getTitle());
}
$tmp_tpl->setVariable("CHAT_DATE",strftime("%c",time()));
$tmp_tpl->setVariable("CONTENT",$this->object->chat_room->getAllMessages());
$file_obj->addFile("chat_".$this->object->chat_room->getRoomId().".html",$tmp_tpl->get());
}
$fname = $file_obj->zip();
ilUtil::deliverFile($fname,"ilias_chat.zip");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::__formatMessage ( )

Definition at line 1882 of file class.ilObjChatGUI.php.

References $_GET, $_SESSION, ilObjectGUI\$tpl, and ilUtil\stripSlashes().

Referenced by emptyRoomObject(), and inputObject().

{
$tpl = new ilTemplate("tpl.chat_message.html",true,true,'Modules/Chat');
$_POST['message'] = htmlentities(trim($_POST['message']),ENT_QUOTES,'utf-8');
$_POST['message'] = ilUtil::stripSlashes($_POST['message']);
$tpl->setVariable("MESSAGE",$_POST["message"]);
$tpl->setVariable("FONT_COLOR",$_POST["color"]);
$tpl->setVariable("FONT_FACE",$_POST["type"]);
if($_GET["p_id"])
{
$user_obj =& new ilObjUser((int) $_SESSION["AccountId"]);
$user_obj->read();
$tpl->setCurrentBlock("private");
$tpl->setVariable("PRIVATE_U_COLOR","red");
$tpl->setVariable("PRIVATE_FROM",$user_obj->getLogin());
$user_obj =& new ilObjUser((int) $_GET["p_id"]);
$user_obj->read();
$tpl->setVariable("PRIVATE_TO",$user_obj->getLogin());
$tpl->parseCurrentBlock();
}
else if($_GET["a_id"])
{
$tpl->setCurrentBlock("address");
$tpl->setVariable("ADDRESS_FROM_COLOR","navy");
$user_obj =& new ilObjUser((int) $_SESSION["AccountId"]);
$user_obj->read();
$tpl->setVariable("ADDRESS_FROM",$user_obj->getLogin());
$tpl->setVariable("ADDRESS_TO_COLOR","red");
$user_obj =& new ilObjUser((int) $_GET["a_id"]);
$user_obj->read();
$tpl->setVariable("ADDRESS_TO",$user_obj->getLogin());
$tpl->parseCurrentBlock();
}
else
{
$tpl->setCurrentBlock("normal");
$tpl->setVariable("NORMAL_U_COLOR","navy");
$tpl->setVariable("NORMAL_UNAME",$this->object->chat_user->getLogin());
$tpl->parseCurrentBlock();
}
// OPEN TAGS
if($_POST["face"])
{
foreach($_POST["face"] as $face)
{
$tpl->setCurrentBlock("type_open");
switch($face)
{
case "bold":
$tpl->setVariable("TYPE_TYPE_O","b");
break;
case "italic":
$tpl->setVariable("TYPE_TYPE_O","i");
break;
case "underlined":
$tpl->setVariable("TYPE_TYPE_O","u");
break;
}
$tpl->parseCurrentBlock();
}
$_POST["face"] = array_reverse($_POST["face"]);
foreach($_POST["face"] as $face)
{
$tpl->setCurrentBlock("type_close");
switch($face)
{
case "bold":
$tpl->setVariable("TYPE_TYPE_C","b");
break;
case "italic":
$tpl->setVariable("TYPE_TYPE_C","i");
break;
case "underlined":
$tpl->setVariable("TYPE_TYPE_C","u");
break;
}
$tpl->parseCurrentBlock();
}
}
$message = preg_replace("/\r/","",$tpl->get());
$message = preg_replace("/\n/","",$message);
return $message;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::__getColorSelect ( )

Definition at line 1816 of file class.ilObjChatGUI.php.

References formSelect().

Referenced by showInputFrameObject().

{
$colors = array("black" => $this->lng->txt("chat_black"),
"red" => $this->lng->txt("chat_red"),
"green" => $this->lng->txt("chat_green"),
"maroon" => $this->lng->txt("chat_maroon"),
"olive" => $this->lng->txt("chat_olive"),
"navy" => $this->lng->txt("chat_navy"),
"purple" => $this->lng->txt("chat_purple"),
"teal" => $this->lng->txt("chat_teal"),
"silver" => $this->lng->txt("chat_silver"),
"gray" => $this->lng->txt("chat_gray"),
"lime" => $this->lng->txt("chat_lime"),
"yellow" => $this->lng->txt("chat_yellow"),
"fuchsia" => $this->lng->txt("chat_fuchsia"),
"aqua" => $this->lng->txt("chat_aqua"),
"blue" => $this->lng->txt("chat_blue"));
return ilUtil::formSelect($_POST["color"],"color",$colors,false,true);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::__getFontFace ( )

Definition at line 1855 of file class.ilObjChatGUI.php.

Referenced by showInputFrameObject().

{
$_POST["face"] = is_array($_POST["face"]) ? $_POST["face"] : array();
$types = array("bold" => $this->lng->txt("chat_bold"),
"italic" => $this->lng->txt("chat_italic"),
"underlined" => $this->lng->txt("chat_underlined"));
$this->tpl->setCurrentBlock("FONT_FACES");
$this->tpl->setVariable("BL_TXT_FACE","<b>".$this->lng->txt("chat_bold")."</b>");
$this->tpl->setVariable("FONT_FACE","bold");
$this->tpl->setVariable("FACE_CHECKED",in_array("bold",$_POST["face"]) ? "checked=\"checked\"" : "");
$this->tpl->parseCurrentBlock();
$this->tpl->setCurrentBlock("FONT_FACES");
$this->tpl->setVariable("BL_TXT_FACE","<i>".$this->lng->txt("chat_italic")."</i>");
$this->tpl->setVariable("FONT_FACE","italic");
$this->tpl->setVariable("FACE_CHECKED",in_array("italic",$_POST["face"]) ? "checked=\"checked\"" : "");
$this->tpl->parseCurrentBlock();
$this->tpl->setCurrentBlock("FONT_FACES");
$this->tpl->setVariable("BL_TXT_FACE","<u>".$this->lng->txt("chat_underlined")."</u>");
$this->tpl->setVariable("FONT_FACE","underlined");
$this->tpl->setVariable("FACE_CHECKED",in_array("underlined",$_POST["face"]) ? "checked=\"checked\"" : "");
$this->tpl->parseCurrentBlock();
}

+ Here is the caller graph for this function:

ilObjChatGUI::__getFontType ( )

Definition at line 1837 of file class.ilObjChatGUI.php.

Referenced by showInputFrameObject().

{
$types = array("times" => $this->lng->txt("chat_times"),
"tahoma" => $this->lng->txt("chat_tahoma"),
"arial" => $this->lng->txt("chat_arial"));
$_POST["type"] = $_POST["type"] ? $_POST["type"] : "times";
foreach($types as $name => $type)
{
$this->tpl->setCurrentBlock("FONT_TYPES");
$this->tpl->setVariable("BL_TXT_TYPE",$type);
$this->tpl->setVariable("FONT_TYPE",$name);
$this->tpl->setVariable("TYPE_CHECKED",$_POST["type"] == $name ? "checked=\"checked\"" : "");
$this->tpl->parseCurrentBlock();
}
}

+ Here is the caller graph for this function:

ilObjChatGUI::__loadStylesheet (   $expires = false)

Definition at line 1803 of file class.ilObjChatGUI.php.

References ilUtil\getStyleSheetLocation().

Referenced by closeFrame(), showInputFrameObject(), showRightFrameObject(), showTopFrameObject(), and showUserFrameObject().

{
$this->tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
$this->tpl->setCurrentBlock("ChatStyle");
$this->tpl->setVariable("LOCATION_CHAT_STYLESHEET", ilUtil::getStyleSheetLocation());
if($expires)
{
$this->tpl->setVariable("EXPIRES","<meta http-equiv=\"expires\" content=\"now\">".
"<meta http-equiv=\"refresh\" content=\"30\">");
}
$this->tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::__prepareOutput ( )

Definition at line 2076 of file class.ilObjChatGUI.php.

References __setHeader(), __setLocator(), ilUtil\infoPanel(), and ilUtil\sendInfo().

Referenced by executeCommand().

{
// output objects
$this->tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
$this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
// output locator
$this->__setLocator();
// output message
if ($this->message)
{
ilUtil::sendInfo($this->message);
}
// display infopanel if something happened
// set header
$this->__setHeader();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::__setHeader ( )

Definition at line 2098 of file class.ilObjChatGUI.php.

References ilUtil\getImagePath(), and getTabs().

Referenced by __prepareOutput().

{
include_once './classes/class.ilTabsGUI.php';
$this->tpl->setCurrentBlock("header_image");
$this->tpl->setVariable("IMG_HEADER", ilUtil::getImagePath("icon_chat_b.gif"));
$this->tpl->parseCurrentBlock();
$this->tpl->setVariable("HEADER",$this->object->getTitle());
$this->tpl->setVariable("H_DESCRIPTION",$this->object->getDescription());
#$tabs_gui =& new ilTabsGUI();
$this->getTabs($this->tabs_gui);
// output tabs
#$this->tpl->setVariable("TABS", $tabs_gui->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::__setLocator ( )

Definition at line 2115 of file class.ilObjChatGUI.php.

References ilObjectGUI\$tree.

Referenced by __prepareOutput().

{
global $tree;
global $ilias_locator;
$this->tpl->addBlockFile("LOCATOR", "locator", "tpl.locator.html");
$counter = 0;
foreach ($tree->getPathFull($this->object->getRefId()) as $key => $row)
{
if($counter++)
{
$this->tpl->touchBlock('locator_separator_prefix');
}
$this->tpl->setCurrentBlock("locator_item");
if($row["type"] == 'chat')
{
$this->tpl->setVariable("ITEM",$this->object->getTitle());
$this->tpl->setVariable("LINK_ITEM",$this->ctrl->getLinkTarget($this));
}
elseif ($row["child"] != $tree->getRootId())
{
$this->tpl->setVariable("ITEM", $row["title"]);
$this->tpl->setVariable("LINK_ITEM","repository.php?ref_id=".$row["child"]);
}
else
{
$this->tpl->setVariable("ITEM", $this->lng->txt("repository"));
$this->tpl->setVariable("LINK_ITEM","repository.php?ref_id=".$row["child"]);
}
$this->tpl->parseCurrentBlock();
}
$this->tpl->setVariable("TXT_LOCATOR",$this->lng->txt("locator"));
$this->tpl->parseCurrentBlock();
}

+ Here is the caller graph for this function:

ilObjChatGUI::__showActiveUsers ( )

Definition at line 1504 of file class.ilObjChatGUI.php.

References $_GET, $_SESSION, $ilCtrl, $user, and ilUtil\getImagePath().

Referenced by showUserFrameObject().

{
global $rbacsystem, $ilCtrl, $ilUser;
if(isset($_GET["a_users"]))
{
if($_GET["a_users"])
{
$_SESSION["a_users"] = true;
}
else
{
$_SESSION["a_users"] = 0;
unset($_SESSION["a_users"]);
}
}
$hide = $_SESSION["a_users"] ? true : false;
$this->tpl->setVariable("ACTIVE_USERS",$this->lng->txt("chat_active_users"));
$this->tpl->setVariable("DETAILS_B_TXT",$hide ? $this->lng->txt("chat_show_details") : $this->lng->txt("chat_hide_details"));
$ilCtrl->setParameter($this, "room_id", $this->object->chat_room->getRoomId());
$ilCtrl->setParameter($this, "a_users", ($hide ? 0 : 1));
$this->tpl->setVariable("DETAILS_B",
$ilCtrl->getLinkTarget($this, "showUserFrame"));
$ilCtrl->clearParameters($this);
if($hide)
{
return true;
}
$users = $this->object->chat_room->getActiveUsers();
if(count($users) <= 1)
{
$this->tpl->setCurrentBlock("no_actice");
$this->tpl->setVariable("NO_ACTIVE_USERS",$this->lng->txt("chat_no_active_users"));
$this->tpl->parseCurrentBlock();
}
else
{
$user_obj =& new ilObjUser();
foreach($users as $user)
{
if($user == $_SESSION["AccountId"])
{
continue;
}
$user_obj->setId($user);
$user_obj->read();
if($rbacsystem->checkAccess('moderate',$this->object->getRefId()) and !$_REQUEST['room_id'])
{
$this->tpl->setCurrentBlock("moderate");
$ilCtrl->setParameter($this, "kick_id", $user_obj->getId());
if($this->object->chat_room->isKicked($user_obj->getId()))
{
$this->tpl->setVariable("MOD_INVITE_IMG_SRC",ilUtil::getImagePath('plus.gif','Modules/Chat'));
$this->tpl->setVariable("MOD_TXT_INVITE_USER",$this->lng->txt('chat_unkick_user_session'));
$this->tpl->setVariable("MOD_ONLINE_LINK_A",
$ilCtrl->getLinkTarget($this, "unkickUser"));
}
else
{
$this->tpl->setVariable("MOD_INVITE_IMG_SRC",ilUtil::getImagePath('minus.gif','Modules/Chat'));
$this->tpl->setVariable("MOD_TXT_INVITE_USER",$this->lng->txt('chat_kick_user_session'));
$this->tpl->setVariable("MOD_ONLINE_LINK_A",
$ilCtrl->getLinkTarget($this, "kickUser"));
}
$ilCtrl->clearParameters($this);
if($user_obj->getPref('public_profile') == 'y')
{
$this->tpl->setVariable("MOD_ONLINE_USER_NAME_A", $user_obj->getFirstname()." ".$user_obj->getLastname()." (".$user_obj->getLogin().")");
}
else
{
$this->tpl->setVariable("MOD_ONLINE_USER_NAME_A",$user_obj->getLogin());
}
$this->tpl->parseCurrentBlock();
}
else
{
$this->tpl->setCurrentBlock("non_moderate");
if ($_GET["p_id"] == $user ||
$_GET["a_id"] == $user)
{
$this->tpl->setVariable("ACTIVE_FONT_A","smallred");
}
else
{
$this->tpl->setVariable("ACTIVE_FONT_A","small");
}
$this->tpl->setVariable("ACTIVE_USER_NAME_A",$user_obj->getLogin());
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("active");
if($ilUser->getId() != ANONYMOUS_USER_ID && $user != ANONYMOUS_USER_ID)
{
if($user_obj->getPref('public_profile') == 'y')
{
$this->tpl->setVariable('ACTIVE_ROW_TXT_PROFILE', $this->lng->txt('chat_profile'));
$ilCtrl->setParameter($this, "user", $user_obj->getId());
$this->tpl->setVariable('ACTIVE_ROW_PROFILE_LINK',
$ilCtrl->getLinkTarget($this, "showUserProfile"));
$ilCtrl->clearParameters($this);
}
$ilCtrl->setParameter($this, "room_id", $_REQUEST["room_id"]);
$ilCtrl->setParameter($this, "a_id", $user);
$this->tpl->setVariable("ACTIVE_ADDRESS_A",
$ilCtrl->getLinkTarget($this, "showInputFrame"));
$this->tpl->setVariable("ACTIVE_TXT_ADDRESS_A",$this->lng->txt("chat_address"));
$ilCtrl->setParameter($this, "p_id", $user);
$ilCtrl->setParameter($this, "a_id", "");
$this->tpl->setVariable("ACTIVE_LINK_A",
$ilCtrl->getLinkTarget($this, "showInputFrame"));
$this->tpl->setVariable("ACTIVE_TXT_WHISPER_A",$this->lng->txt("chat_whisper"));
$ilCtrl->setParameter($this, "p_id", "");
}
$this->tpl->parseCurrentBlock();
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::__showAdminAddRoomSelect ( )

Definition at line 1632 of file class.ilObjChatGUI.php.

References formSelect().

Referenced by viewObject().

{
$opt = array("createRoom" => $this->lng->txt("chat_room_select"));
return ilUtil::formSelect("","action_b",$opt,false,true);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::__showAdminRoomSelect ( )

Definition at line 1639 of file class.ilObjChatGUI.php.

References $_SESSION, and formSelect().

Referenced by viewObject().

{
global $rbacsystem;
$opt["exportRoom"] = $this->lng->txt("chat_html_export");
if($rbacsystem->checkAccess('write',$this->object->getRefId()) or
count($this->object->chat_room->getRoomsOfObject()))
{
$opt["refreshRoom"] = $this->lng->txt("chat_refresh");
}
if(count($this->object->chat_room->getRoomsOfObject()))
{
$opt["renameRoom"] = $this->lng->txt("rename");
$opt["deleteRoom"] = $this->lng->txt("delete");
}
return ilUtil::formSelect(isset($_SESSION["room_id_delete"]) ? "deleteRoom" : "",
"action",
$opt,
false,
true);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::__showOnlineUsers ( )

Definition at line 1385 of file class.ilObjChatGUI.php.

References $_GET, $_SESSION, $cmd, $ilCtrl, $img, $user, ilChatBlockedUsers\_isBlocked(), and ilUtil\getImagePath().

Referenced by showUserFrameObject().

{
global $ilCtrl, $ilUser;
include_once 'Modules/Chat/classes/class.ilChatBlockedUsers.php';
$all_users = $this->object->chat_room->getOnlineUsers();
// filter blocked users
$filtered_users = array();
foreach($all_users as $user)
{
if(!ilChatBlockedUsers::_isBlocked($this->object->getId(),$user['user_id']))
{
if($user['user_id'] == $_SESSION['AccountId'] ||
$user['user_id'] == ANONYMOUS_USER_ID)
{
continue;
}
$oUser = new ilObjUser();
$oUser->setId($user['user_id']);
$oUser->read();
if($oUser->getPref('hide_own_online_status') == 'y')
{
continue;
}
$filtered_users[] = $oUser;
}
}
if(count($filtered_users) < 1)
{
$this->tpl->setCurrentBlock('no_online');
$this->tpl->setVariable('NO_ONLINE_USERS', $this->lng->txt('chat_no_online_users'));
$this->tpl->parseCurrentBlock();
}
else
{
$counter = 0;
foreach($filtered_users as $user)
{
if(!($counter % 2))
{
$this->tpl->setCurrentBlock('online_row_start');
$this->tpl->touchBlock('online_row_start');
$this->tpl->parseCurrentBlock();
if($counter == count($filtered_users) - 1)
{
$this->tpl->setCurrentBlock('online_empty_col');
$this->tpl->touchBlock('online_empty_col');
$this->tpl->parseCurrentBlock();
}
}
if(($counter % 2) || $counter == count($filtered_users) - 1)
{
$this->tpl->setCurrentBlock('online_row_end');
$this->tpl->touchBlock('online_row_end');
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock('online');
if($ilUser->getId() != ANONYMOUS_USER_ID)
{
if ($_GET['p_id'] == $user->getId() ||
$_GET['a_id'] == $user->getId())
{
$this->tpl->setVariable('ONLINE_FONT_A','smallred');
}
else
{
$this->tpl->setVariable('ONLINE_FONT_A','small');
}
if($this->object->chat_room->isInvited($user->getId()))
{
$img = 'minus.gif';
$cmd = 'drop';
}
else
{
$img = 'plus.gif';
$cmd = 'invite';
}
$ilCtrl->setParameter($this, 'room_id', $_REQUEST['room_id']);
$ilCtrl->setParameter($this, 'i_id', $user->getId());
$this->tpl->setVariable('ONLINE_LINK_A',
$ilCtrl->getLinkTarget($this, $cmd));
$ilCtrl->clearParameters($this);
$this->tpl->setVariable('TXT_INVITE_USER',$cmd == 'invite' ? $this->lng->txt('chat_invite_user') :
$this->lng->txt('chat_disinvite_user'));
if($user->getPref('public_profile') == 'y')
{
$this->tpl->setVariable('ONLINE_USER_NAME_A',
$user->getFirstname().' '.$user->getLastname().' ('.$user->getLogin().')');
}
else
{
$this->tpl->setVariable('ONLINE_USER_NAME_A', $user->getLogin());
}
$this->tpl->setVariable('INVITE_IMG_SRC',
ilUtil::getImagePath($img, 'Modules/Chat'));
}
else
{
$this->tpl->setVariable('ONLINE_USER_NAME_A_NOT_INVITEABLE', $user->getLogin());
}
$this->tpl->parseCurrentBlock();
$counter++;
}
}
$this->tpl->setCurrentBlock('show_online');
$this->tpl->setVariable('ONLINE_USERS', $this->lng->txt('chat_online_users'));
$this->tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::__showRooms ( )

Definition at line 1663 of file class.ilObjChatGUI.php.

References $_GET, $_SESSION, $ilCtrl, ilChatBlockedUsers\_isBlocked(), and ilObjectFactory\getInstanceByObjId().

Referenced by showUserFrameObject().

{
global $rbacsystem, $ilUser, $ilCtrl;
include_once 'Modules/Chat/classes/class.ilChatBlockedUsers.php';
$public_rooms = $this->object->chat_room->getAllRooms();
$private_rooms = $this->object->chat_room->getRooms();
if(isset($_GET["h_rooms"]))
{
if($_GET["h_rooms"])
{
$_SESSION["h_rooms"] = true;
}
else
{
$_SESSION["h_rooms"] = 0;
unset($_SESSION["h_rooms"]);
}
}
$hide = $_SESSION["h_rooms"] ? true : false;
$this->tpl->setVariable("ROOMS_ROOMS",$this->lng->txt("chat_rooms"));
$this->tpl->setVariable("DETAILS_TXT",$hide ? $this->lng->txt("chat_show_details") : $this->lng->txt("chat_hide_details"));
$this->tpl->setVariable("ROOMS_COUNT",count($public_rooms) + count($private_rooms));
$ilCtrl->setParameter($this, "room_id", $this->object->chat_room->getRoomId());
$ilCtrl->setParameter($this, "h_rooms", ($hide ? 0 : 1));
$this->tpl->setVariable("DETAILS_A",
$ilCtrl->getLinkTarget($this, "showUserFrame"));
$ilCtrl->clearParameters($this);
if($hide)
{
return true;
}
$this->object->__initChatRecording();
$user_obj =& new ilObjUser();
foreach($public_rooms as $room)
{
$tblrow = ($room['child'] == $this->object->getRefId()) ? 'tblrowmarked' : 'tblrow1';
if(ilChatBlockedUsers::_isBlocked($room['obj_id'],$ilUser->getId()))
{
continue;
}
$this->tpl->setCurrentBlock("room_row");
$this->tpl->setVariable("ROOM_ROW_CSS",$tblrow);
$ilCtrl->setParameter($this, "ref_id", $room["child"]);
$this->tpl->setVariable("ROOM_LINK", $ilCtrl->getLinkTarget($this, "showFrames"));
$ilCtrl->setParameter($this, "ref_id", $_GET["ref_id"]);
$this->tpl->setVariable("ROOM_TARGET","_top");
$this->tpl->setVariable("ROOM_NAME",$room["title"]);
$this->tpl->setVariable("ROOM_ONLINE",$this->object->chat_room->getCountActiveUser($room["obj_id"],0));
$this->object->chat_recording->setObjId($room["obj_id"]);
if ($room["child"] == $this->object->getRefId() &&
$this->object->chat_room->getRoomId() == 0 &&
$rbacsystem->checkAccess("moderate", $this->object->getRefId()))
{
$this->tpl->setVariable("TXT_EMPTY_ROOM", $this->lng->txt("chat_empty"));
$ilCtrl->setParameter($this, "ref_id", $room["child"]);
$this->tpl->setVariable("LINK_EMPTY_ROOM",
$ilCtrl->getLinkTarget($this, "emptyRoom"));
$ilCtrl->setParameter($this, "ref_id", $_GET["ref_id"]);
}
$this->object->chat_recording->setObjId($room["obj_id"]);
$this->object->chat_recording->setRoomId(0);
if ($this->object->chat_recording->isRecording())
{
$this->tpl->setVariable("TXT_RECORDING", $this->lng->txt("chat_recording_running"));
}
$this->tpl->parseCurrentBlock();
reset($private_rooms);
foreach($private_rooms as $priv_room)
{
if ($priv_room["chat_id"] == $room["obj_id"])
{
$this->tpl->touchBlock("room_row_indent");
$this->tpl->setCurrentBlock("room_row");
$this->tpl->setVariable("ROOM_ROW_CSS",$tblrow);
$ilCtrl->setParameter($this, "ref_id", $room["child"]);
$ilCtrl->setParameter($this, "room_id", $priv_room["room_id"]);
$this->tpl->setVariable("ROOM_LINK",
$ilCtrl->getLinkTarget($this, "showFrames"));
$ilCtrl->clearParameters($this);
$this->tpl->setVariable("ROOM_TARGET","_top");
$this->tpl->setVariable("ROOM_NAME",$priv_room["title"]);
$this->tpl->setVariable("ROOM_ONLINE",
$this->object->chat_room->getCountActiveUser($priv_room["chat_id"],$priv_room["room_id"]));
if ($priv_room["owner"] != $_SESSION["AccountId"] &&
!$rbacsystem->checkAccess('moderate', $this->object->getRefId()))
{
if($user_obj =& ilObjectFactory::getInstanceByObjId($priv_room['owner'],false))
{
$this->tpl->setVariable("TXT_ROOM_INVITATION", $this->lng->txt("chat_invited_by"));
$this->tpl->setVariable("ROOM_INVITATION_USER", $user_obj->getLogin());
}
}
else
{
$this->tpl->setVariable("TXT_DELETE_ROOM", $this->lng->txt("delete"));
$ilCtrl->setParameter($this, "room_id", $this->object->chat_room->getRoomId());
$ilCtrl->setParameter($this, "room_id_delete", $priv_room["room_id"]);
$this->tpl->setVariable("LINK_DELETE_ROOM",
$ilCtrl->getLinkTarget($this, "deleteRoom"));
}
$this->object->chat_recording->setObjId($priv_room["chat_id"]);
$this->object->chat_recording->setRoomId($priv_room["room_id"]);
if ($this->object->chat_recording->isRecording())
{
$this->tpl->setVariable("TXT_RECORDING", $this->lng->txt("chat_recording_running"));
}
if ($priv_room["chat_id"] == $this->object->getRefId() &&
$priv_room["room_id"] == $this->object->chat_room->getRoomId() &&
$rbacsystem->checkAccess("moderate", $this->object->getRefId()))
{
$this->tpl->setVariable("TXT_EMPTY_ROOM", $this->lng->txt("chat_empty"));
$ilCtrl->setParameter($this, "ref_id", $this->object->getRefId());
$ilCtrl->setParameter($this, "room_id", $this->object->chat_room->getRoomId());
$this->tpl->setVariable("LINK_EMPTY_ROOM",
$ilCtrl->getLinkTarget($this, "emptyRoom"));
$ilCtrl->clearParameters($this);
}
$this->tpl->parseCurrentBlock();
}
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::_goto (   $a_target)

Definition at line 2155 of file class.ilObjChatGUI.php.

References $_GET, $ilErr, ilObjectGUI\$lng, ilObject\_lookupObjId(), ilObject\_lookupTitle(), exit, and ilUtil\sendInfo().

{
global $ilAccess, $ilErr, $lng;
if ($ilAccess->checkAccess("read", "", $a_target))
{
$_GET["ref_id"] = $a_target;
$_GET["cmd"] = "view";
$_GET["baseClass"] = "ilChatHandlerGUI";
include("ilias.php");
}
else if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID))
{
$_GET["cmd"] = "frameset";
$_GET["target"] = "";
$_GET["ref_id"] = ROOT_FOLDER_ID;
ilUtil::sendInfo(sprintf($lng->txt("msg_no_perm_read_item"),
include("repository.php");
}
$ilErr->raiseError($lng->txt("msg_no_perm_read"), $ilErr->FATAL);
}

+ Here is the call graph for this function:

ilObjChatGUI::addAdminLocatorItems ( )

should be overwritten to add object specific items (repository items are preloaded)

Reimplemented from ilObjectGUI.

Definition at line 137 of file class.ilObjChatGUI.php.

References $_GET, ilObjectGUI\$tree, and ilFrameTargetInfo\_getFrame().

{
global $ilLocator,$tree,$ilObjDataCache;
if ($_GET["admin_mode"] == "settings") // system settings
{
$ilLocator->addItem($this->lng->txt("administration"),
$this->ctrl->getLinkTargetByClass("iladministrationgui", "frameset"),
// add chat settings
$chat_settings_ref_id = $tree->getParentId($this->object->getRefId());
$chat_settings_obj_id = $ilObjDataCache->lookupObjId($chat_settings_ref_id);
$this->ctrl->setParameterByClass('ilobjchatservergui','ref_id',$chat_settings_ref_id);
$ilLocator->addItem($ilObjDataCache->lookupTitle($chat_settings_obj_id),
$this->ctrl->getLinkTargetByClass(array('iladministrationgui','ilobjchatservergui'),
'view'));
if ($this->object->getRefId() != SYSTEM_FOLDER_ID)
{
$ilLocator->addItem($this->object->getTitle(),
$this->ctrl->getLinkTarget($this, "view"));
}
}
else // repository administration
{
}
}

+ Here is the call graph for this function:

ilObjChatGUI::addLocatorItems ( )

should be overwritten to add object specific items (repository items are preloaded)

Reimplemented from ilObjectGUI.

Definition at line 2196 of file class.ilObjChatGUI.php.

References $_GET.

{
global $ilLocator;
if (is_object($this->object))
{
$ilLocator->addItem($this->object->getTitle(), $this->ctrl->getLinkTarget($this, ''), '', $_GET['ref_id']);
}
}
ilObjChatGUI::addPrivateRoomObject ( )

Definition at line 679 of file class.ilObjChatGUI.php.

References $_SESSION, exit, ilUtil\sendInfo(), ilChatRoom\setTitle(), showFramesObject(), and ilUtil\stripSlashes().

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("read", $this->ref_id))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
else
{
$room =& new ilChatRoom($this->object->getId());
$room->setTitle(ilUtil::stripSlashes($_POST["room_name"]));
$room->setOwnerId($_SESSION["AccountId"]);
if(!$room->validate())
{
ilUtil::sendInfo($room->getErrorMessage(), true);
}
else
{
$room->add();
ilUtil::sendInfo($this->lng->txt("chat_room_added"),true);
}
$this->showFramesObject();
}
}

+ Here is the call graph for this function:

ilObjChatGUI::addRoomObject ( )

Definition at line 707 of file class.ilObjChatGUI.php.

References $_SESSION, ilUtil\sendInfo(), ilChatRoom\setTitle(), ilUtil\stripSlashes(), and viewObject().

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("read", $this->ref_id))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
$room =& new ilChatRoom($this->object->getId());
$room->setTitle(ilUtil::stripSlashes($_POST["room_name"]));
$room->setOwnerId($_SESSION["AccountId"]);
if(!$room->validate())
{
$this->ilias->raiseError($room->getErrorMessage(),$this->ilias->error_obj->MESSAGE);
}
$room->add();
ilUtil::sendInfo($this->lng->txt("chat_room_added"));
$this->viewObject();
return true;
#header("location: ".$this->getTargetScript("cmd=gateway&ref_id=".$this->ref_id));
#exit;
}

+ Here is the call graph for this function:

ilObjChatGUI::adminAddRoomObject ( )

Definition at line 759 of file class.ilObjChatGUI.php.

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("read", $this->ref_id))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.chat_edit_room.html","Modules/Chat");
$this->tpl->setVariable("FORMACTION",$this->ctrl->getFormAction($this));
$this->tpl->setVariable("TXT_ROOM_NAME",$this->lng->txt("chat_room_name"));
$this->tpl->setVariable("ROOM_CANCEL",$this->lng->txt("cancel"));
$this->tpl->setVariable("TXT_EDIT_CHATROOMS",$this->lng->txt("chat_chatroom_rename"));
$this->tpl->setVariable("ROOM_NAME","");
$this->tpl->setVariable("CMD","addRoom");
$this->tpl->setVariable("ROOM_EDIT",$this->lng->txt("add"));
}
ilObjChatGUI::adminRoomsObject ( )

Definition at line 513 of file class.ilObjChatGUI.php.

References $_SESSION, __exportRooms(), ilUtil\sendInfo(), ilChatRoom\setRoomId(), and viewObject().

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("read", $this->ref_id))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
if(!isset($_POST["del_id"]))
{
ilUtil::sendInfo($this->lng->txt("chat_select_one_room"));
$this->viewObject();
return false;
}
switch($_POST["action"])
{
case "renameRoom":
if(count($_POST["del_id"]) > 1)
{
ilUtil::sendInfo($this->lng->txt("chat_select_one_room"));
$this->viewObject();
return false;
}
if(in_array(0,$_POST["del_id"]))
{
ilUtil::sendInfo($this->lng->txt("chat_no_rename_public"));
$this->viewObject();
return false;
}
// STORE ID IN SESSION
$_SESSION["room_id_rename"] = (int) $_POST["del_id"][0];
$room =& new ilChatRoom($this->object->getId());
$room->setRoomId($_SESSION["room_id_rename"]);
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.chat_edit_room.html","Modules/Chat");
$this->tpl->setVariable("FORMACTION",$this->ctrl->getFormAction($this));
$this->tpl->setVariable("TXT_ROOM_NAME",$this->lng->txt("chat_room_name"));
$this->tpl->setVariable("ROOM_CANCEL",$this->lng->txt("cancel"));
$this->tpl->setVariable("TXT_EDIT_CHATROOMS",$this->lng->txt("chat_chatroom_rename"));
$this->tpl->setVariable("ROOM_NAME",$room->getTitle());
$this->tpl->setVariable("CMD","renameRoom");
$this->tpl->setVariable("ROOM_EDIT",$this->lng->txt("rename"));
break;
case "deleteRoom":
if(in_array(0,$_POST["del_id"]))
{
ilUtil::sendInfo($this->lng->txt("chat_no_delete_public"));
$this->viewObject();
return false;
}
$_SESSION["room_id_delete"] = $_POST["del_id"];
$this->viewObject();
return true;
case "exportRoom":
$this->__exportRooms();
break;
case "refreshRoom":
if(in_array(0,$_POST["del_id"]) and !$rbacsystem->checkAccess('write',$this->object->getRefId()))
{
ilUtil::sendInfo($this->lng->txt("chat_no_refresh_public"));
$this->viewObject();
return true;
}
foreach($_POST["del_id"] as $room_id)
{
$this->object->chat_room->setRoomId($room_id);
$this->object->server_comm->setType("delete");
$this->object->server_comm->send();
$this->object->chat_room->deleteAllMessages();
}
ilUtil::sendInfo($this->lng->txt('chat_refreshed'));
$this->viewObject();
return true;
}
}

+ Here is the call graph for this function:

ilObjChatGUI::askDeleteRecordingsObject ( )

Definition at line 836 of file class.ilObjChatGUI.php.

References $_SESSION, ilUtil\getImagePath(), recordingsObject(), ilUtil\sendInfo(), and ilUtil\switchColor().

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("moderate", $this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
if(!is_array($_POST['recordings']))
{
ilUtil::sendInfo($this->lng->txt('chat_recordings_select_one'));
$this->recordingsObject();
return false;
}
$this->object->__initChatRecording();
ilUtil::sendInfo($this->lng->txt('chat_recordings_delete_sure'));
$this->tpl->addBlockFile("ADM_CONTENT","adm_content","tpl.chat_ask_delete_recordings.html","Modules/Chat");
$this->tpl->setVariable("FORMACTION",$this->ctrl->getFormAction($this));
$this->tpl->setVariable("TBL_TITLE",$this->lng->txt('chat_recordings'));
$this->tpl->setVariable("HEADER_DESC",$this->lng->txt('chat_recording_description'));
$this->tpl->setVariable("HEADER_MOD",$this->lng->txt('chat_recording_moderator'));
$this->tpl->setVariable("HEADER_TIME",$this->lng->txt('chat_recording_time_frame'));
$this->tpl->setVariable("IMG_ARROW",ilUtil::getImagePath('arrow_downright.gif'));
$this->tpl->setVariable("BTN_DELETE",$this->lng->txt('delete'));
$this->tpl->setVariable("BTN_CANCEL",$this->lng->txt('cancel'));
$counter = 0;
for ($i = 0; $i < count($_POST["recordings"]); $i++)
{
$this->object->chat_recording->getRecord($_POST["recordings"][$i]);
$this->tpl->setCurrentBlock("recordings_row");
if($this->object->chat_recording->getTitle() != "")
{
$this->tpl->setVariable("RECORDING_TITLE", $this->object->chat_recording->getTitle());
}
if($this->object->chat_recording->getDescription() != "")
{
$this->tpl->setVariable("RECORDING_DESCRIPTION", $this->object->chat_recording->getDescription());
}
if ($moderator = $this->object->chat_recording->getModerator())
{
$this->tpl->setVariable("MODERATOR", $moderator);
}
$this->tpl->setVariable("START_TIME", date("Y-m-d H:i:s", $this->object->chat_recording->getStartTime()));
if ($this->object->chat_recording->getEndTime() > 0)
{
$this->tpl->setVariable("END_TIME", date("Y-m-d H:i:s", $this->object->chat_recording->getEndTime()));
}
$this->tpl->setVariable("ROW_CLASS",ilUtil::switchColor(++$counter,'tblrow1','tblrow2'));
$this->tpl->parseCurrentBlock();
}
$_SESSION['chat_recordings_del'] = $_POST['recordings'];
}

+ Here is the call graph for this function:

ilObjChatGUI::blockedUsersObject ( )

Definition at line 207 of file class.ilObjChatGUI.php.

References ilUtil\formCheckbox(), and ilUtil\getImagePath().

Referenced by blockUserObject(), and unblockUsersObject().

{
include_once 'Modules/Chat/classes/class.ilChatBlockedUsers.php';
global $rbacsystem;
if(!$rbacsystem->checkAccess('moderate',$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_write"),$this->ilias->error_obj->MESSAGE);
}
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.chat_blocked_users.html","Modules/Chat");
$blocked_obj = new ilChatBlockedUsers($this->object->getId());
if(!count($blocked = $blocked_obj->getBlockedUsers()))
{
$this->tpl->setVariable("MESSAGE_NO_BLOCKED",$this->lng->txt('chat_no_blocked'));
}
else
{
$this->tpl->setCurrentBlock("delete_blocked");
$this->tpl->setVariable("BTN_DELETE",$this->lng->txt('chat_blocked_unlocked'));
$this->tpl->setVariable("IMG_ARROW",ilUtil::getImagePath('arrow_downright.gif'));
$this->tpl->parseCurrentBlock();
}
foreach($blocked as $usr_id)
{
$tmp_user =& new ilObjUser($usr_id);
$this->tpl->setCurrentBlock("blocked_users");
$this->tpl->setVariable("FULLNAME",$tmp_user->getFullname());
$this->tpl->setVariable("LOGIN",$tmp_user->getLogin());
$this->tpl->setVariable("BLOCK_CHECK",ilUtil::formCheckbox(0,'blocked_check[]',$tmp_user->getId()));
$this->tpl->parseCurrentBlock();
}
// Fill table
$this->tpl->setVariable("FORMACTION",$this->ctrl->getFormAction($this));
$this->tpl->setVariable("TBL_TITLE_IMG",ilUtil::getImagePath('icon_usr.gif'));
$this->tpl->setVariable("TBL_TITLE_IMG_ALT",$this->lng->txt('chat_blocked_users'));
$this->tpl->setVariable("TBL_TITLE",$this->lng->txt('chat_blocked_users'));
$this->tpl->setVariable("HEADER_NAME",$this->lng->txt('chat_user_name'));
$this->tpl->setVariable("BTN_BLOCK",$this->lng->txt('chat_block_user'));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::blockUserObject ( )

Definition at line 255 of file class.ilObjChatGUI.php.

References blockedUsersObject(), ilObjUser\getUserIdByLogin(), and ilUtil\sendInfo().

{
include_once 'Modules/Chat/classes/class.ilChatBlockedUsers.php';
global $rbacsystem;
if(!$rbacsystem->checkAccess('moderate',$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_write"),$this->ilias->error_obj->MESSAGE);
}
$blocked_obj = new ilChatBlockedUsers($this->object->getId());
if(!$_POST['block'] or !($usr_id = ilObjUser::getUserIdByLogin($_POST['block'])))
{
ilUtil::sendInfo($this->lng->txt('chat_enter_valid_username'));
return false;
}
if($blocked_obj->isBlocked($usr_id))
{
ilUtil::sendInfo($this->lng->txt('chat_user_already_blocked'));
return false;
}
$blocked_obj->block($usr_id);
ilUtil::sendInfo($this->lng->txt('chat_user_blocked'));
return true;
}

+ Here is the call graph for this function:

ilObjChatGUI::cancel ( )

Definition at line 1231 of file class.ilObjChatGUI.php.

References $_GET, and showInputFrameObject().

{
unset($_GET["p_id"]);
unset($_GET["a_id"]);
}

+ Here is the call graph for this function:

ilObjChatGUI::cancelAddressOrWhisperModeObject ( )

Definition at line 1239 of file class.ilObjChatGUI.php.

References $_GET, and showInputFrameObject().

{
unset($_GET["p_id"]);
unset($_GET["a_id"]);
}

+ Here is the call graph for this function:

ilObjChatGUI::cancelObject ( )

Cancel.

public

Parameters

Definition at line 124 of file class.ilObjChatGUI.php.

References $_SESSION, and ilUtil\sendInfo().

{
unset($_SESSION["room_id_rename"]);
unset($_SESSION["room_id_delete"]);
unset($_SESSION['saved_post']);
ilUtil::sendInfo($this->lng->txt("msg_cancel"), true);
$this->ctrl->redirect($this);
}

+ Here is the call graph for this function:

ilObjChatGUI::closeFrame ( )

Definition at line 1358 of file class.ilObjChatGUI.php.

References __loadStylesheet(), and ilUtil\sendInfo().

{
$this->__loadStylesheet(true);
$this->tpl->addBlockFile("CONTENT", "content", "tpl.chat_close.html",'Modules/Chat');
ilUtil::sendInfo("Your session is expired please login to ILIAS.");
$this->tpl->touchBlock("content");
}

+ Here is the call graph for this function:

ilObjChatGUI::confirmedDeleteRoomObject ( )

Definition at line 655 of file class.ilObjChatGUI.php.

References $_SESSION, ilUtil\sendInfo(), and viewObject().

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("read", $this->ref_id))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
if(!$_SESSION["room_id_delete"])
{
$this->ilias->raiseError($this->lng->txt("chat_select_one_room"),$this->ilias->error_obj->MESSAGE);
}
$this->object->chat_room->setOwnerId($_SESSION["AccountId"]);
if(!$this->object->chat_room->deleteRooms($_SESSION["room_id_delete"]))
{
$this->ilias->raiseError($this->object->chat_room->getErrorMessage(),$this->ilias->error_obj->MESSAGE);
}
unset($_SESSION["room_id_delete"]);
ilUtil::sendInfo($this->lng->txt("chat_rooms_deleted"));
$this->viewObject();
return true;
}

+ Here is the call graph for this function:

ilObjChatGUI::deleteRecordingsObject ( )

Definition at line 895 of file class.ilObjChatGUI.php.

References $_SESSION, recordingsObject(), and ilUtil\sendInfo().

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("moderate", $this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
if(!is_array($_SESSION['chat_recordings_del']))
{
ilUtil::sendInfo($this->lng->txt('chat_recordings_none_selected'));
$this->recordingsObject();
return false;
}
$this->object->__initChatRecording();
foreach($_SESSION['chat_recordings_del'] as $record_id)
{
$this->object->chat_recording->delete($record_id);
}
ilUtil::sendInfo($this->lng->txt('chat_recordings_deleted'));
$this->recordingsObject();
unset($_SESSION['chat_recordings_del']);
return true;
}

+ Here is the call graph for this function:

ilObjChatGUI::deleteRoomObject ( )

Definition at line 623 of file class.ilObjChatGUI.php.

References $_GET, $_SESSION, and ilUtil\sendInfo().

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("read", $this->ref_id))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
if(!$_GET["room_id_delete"])
{
$this->ilias->raiseError($this->lng->txt("chat_select_one_room"),$this->ilias->error_obj->MESSAGE);
}
$this->object->chat_room->setOwnerId($_SESSION["AccountId"]);
$rooms = array($_GET["room_id_delete"]);
if (!$rbacsystem->checkAccess("write", $this->ref_id))
{
$delResult = $this->object->chat_room->deleteRooms($rooms, $this->object->chat_room->getOwnerId());
}
else
{
$delResult = $this->object->chat_room->deleteRooms($rooms);
}
if(!$delResult)
{
$this->ilias->raiseError($this->object->chat_room->getErrorMessage(),$this->ilias->error_obj->MESSAGE);
}
unset($_GET["room_id_delete"]);
ilUtil::sendInfo($this->lng->txt("chat_rooms_deleted"), true);
//$this->showFramesObject();
$this->ctrl->redirect($this, 'showFrames');
}

+ Here is the call graph for this function:

ilObjChatGUI::dropObject ( )

Definition at line 1344 of file class.ilObjChatGUI.php.

References $_GET, ilUtil\sendInfo(), and showFramesObject().

{
if($_GET["i_id"])
{
$this->object->chat_room->drop((int) $_GET["i_id"]);
$tmp_user =& new ilObjUser($_GET["i_id"]);
$this->object->server_comm->setKickedUser($tmp_user->getLogin());
$this->object->server_comm->setType("kick");
$this->object->server_comm->send();
ilUtil::sendInfo($this->lng->txt("chat_user_dropped_private"),true);
$this->showFramesObject();
}
}

+ Here is the call graph for this function:

ilObjChatGUI::emptyRoomObject ( )

Definition at line 605 of file class.ilObjChatGUI.php.

References $_GET, __formatMessage(), and showFramesObject().

{
global $rbacsystem;
if ($rbacsystem->checkAccess("moderate", $this->object->getRefId()) &&
$this->object->chat_room->checkWriteAccess())
{
$this->object->server_comm->setType('delete');
$message = $this->__formatMessage();
$this->object->server_comm->setMessage($message);
$this->object->server_comm->send();
$this->object->chat_room->deleteAllMessages();
}
unset($_GET["room_id_empty"]);
$this->showFramesObject();
}

+ Here is the call graph for this function:

& ilObjChatGUI::executeCommand ( )

execute command

Reimplemented from ilObjectGUI.

Definition at line 66 of file class.ilObjChatGUI.php.

References $_GET, $cmd, $ret, __prepareOutput(), infoScreen(), and ilObjectGUI\prepareOutput().

{
global $rbacsystem;
if($_GET["baseClass"] == "ilChatPresentationGUI")
{
$this->__prepareOutput();
}
else
{
$this->prepareOutput();
}
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd();
//var_dump($_GET);
//var_dump($_POST);
//echo "-$cmd-"; exit;
switch($next_class)
{
case 'ilpermissiongui':
include_once("./classes/class.ilPermissionGUI.php");
$perm_gui =& new ilPermissionGUI($this);
$ret =& $this->ctrl->forwardCommand($perm_gui);
break;
case "ilpublicuserprofilegui":
include_once("./Services/User/classes/class.ilPublicUserProfileGUI.php");
$profile_gui = new ilPublicUserProfileGUI((int)$_GET['user']);
$ret = $this->ctrl->forwardCommand($profile_gui);
break;
case 'ilinfoscreengui':
//$this->prepareOutput();
$this->infoScreen();
break;
default:
if(!$cmd)
{
$cmd = "view";
}
$cmd .= "Object";
$this->$cmd();
break;
}
return true;
}

+ Here is the call graph for this function:

ilObjChatGUI::exportObject ( )

Definition at line 1366 of file class.ilObjChatGUI.php.

References ilUtil\deliverData(), and exit.

Referenced by __exportRooms().

{
$tmp_tpl =& new ilTemplate("tpl.chat_export.html",true,true,"Modules/Chat");
if($this->object->chat_room->getRoomId())
{
$tmp_tpl->setVariable("CHAT_NAME",$this->object->chat_room->getTitle());
}
else
{
$tmp_tpl->setVariable("CHAT_NAME",$this->object->getTitle());
}
$tmp_tpl->setVariable("CHAT_DATE",strftime("%c",time()));
$tmp_tpl->setVariable("CONTENT",$this->object->chat_room->getAllMessages());
ilUtil::deliverData($tmp_tpl->get(),"1.html");
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::exportRecordingObject ( )

Definition at line 925 of file class.ilObjChatGUI.php.

References $_GET, ilUtil\deliverData(), exit, recordingsObject(), and ilUtil\sendInfo().

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("moderate", $this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
$this->object->__initChatRecording();
if (!$this->object->chat_recording->getRecord($_GET["record_id"]) ||
$this->object->chat_recording->getEndTime() == 0)
{
ilUtil::sendInfo($this->lng->txt('chat_recording_not_found'));
$this->recordingsObject();
return false;
}
$tmp_tpl =& new ilTemplate("tpl.chat_export_recording.html",true,true,"Modules/Chat");
if($this->object->chat_recording->getTitle())
{
$tmp_tpl->setVariable("TITLE",$this->object->chat_recording->getTitle());
}
$tmp_tpl->setVariable("START_TIME",date("Y-m-d H:i:s", $this->object->chat_recording->getStartTime()));
$tmp_tpl->setVariable("END_TIME",date("Y-m-d H:i:s", $this->object->chat_recording->getEndTime()));
$tmp_tpl->setVariable("CONTENT",$this->object->chat_recording->exportMessages());
ilUtil::deliverData($tmp_tpl->get(), "chat_recording_" . $_GET["record_id"] . ".html");
}

+ Here is the call graph for this function:

ilObjChatGUI::getTabs ( $tabs_gui)

get tabs public

Parameters
objecttabs gui object

Reimplemented from ilObjectGUI.

Definition at line 2015 of file class.ilObjChatGUI.php.

References $_GET.

Referenced by __setHeader().

{
global $rbacsystem,$rbacreview, $ilAccess;
$this->ctrl->setParameter($this,"ref_id",$this->object->getRefId());
//echo "-".$this->ctrl->getCmd()."-";
if($rbacsystem->checkAccess('read',$this->object->getRefId()))
{
$force_active = ($_GET["cmd"] == "" || $_GET["cmd"] == "view")
? true
: false;
$tabs_gui->addTarget("chat_rooms",
$this->ctrl->getLinkTarget($this, "view"), array("view", ""), get_class($this),
"", $force_active);
}
// info tab
if ($ilAccess->checkAccess('visible', '', $this->ref_id))
{
$force_active = ($this->ctrl->getNextClass() == "ilinfoscreengui"
|| strtolower($_GET["cmdClass"]) == "ilnotegui")
? true
: false;
//echo "-$force_active-";
$tabs_gui->addTarget("info_short",
$this->ctrl->getLinkTargetByClass(
array("ilobjchatgui", "ilinfoscreengui"), "showSummary"),
array("showSummary", "infoScreen"),
"", "", $force_active);
}
if($rbacsystem->checkAccess('write',$this->object->getRefId()))
{
$force_active = ($_GET["cmd"] == "edit")
? true
: false;
$tabs_gui->addTarget("edit_properties",
$this->ctrl->getLinkTarget($this, "edit"), "edit", get_class($this),
"", $force_active);
}
if($rbacsystem->checkAccess('moderate',$this->object->getRefId()))
{
$tabs_gui->addTarget("chat_recordings",
$this->ctrl->getLinkTarget($this, "recordings"), "recordings", get_class($this));
}
if($rbacsystem->checkAccess('moderate',$this->object->getRefId()))
{
$tabs_gui->addTarget("chat_blocked_users",
$this->ctrl->getLinkTarget($this, "blockedUsers"),
array("blockedUsers", "unBlockUsers", "blockUser"), get_class($this));
}
if($rbacsystem->checkAccess('edit_permission',$this->object->getRefId()))
{
$tabs_gui->addTarget("perm_settings",
$this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"), array("perm","info","owner"), 'ilpermissiongui');
}
}

+ Here is the caller graph for this function:

ilObjChatGUI::getTargetScript (   $a_params)

Definition at line 175 of file class.ilObjChatGUI.php.

{
return $this->target_script."?".$a_params;
}
ilObjChatGUI::ilObjChatGUI (   $a_data,
  $a_id,
  $a_call_by_reference = true,
  $a_prepare_output = true 
)

Constructor public.

Definition at line 49 of file class.ilObjChatGUI.php.

References $_SESSION, $ilCtrl, and ilObjectGUI\ilObjectGUI().

{
global $ilCtrl;
$this->type = "chat";
$this->ilObjectGUI($a_data,$a_id,$a_call_by_reference, $a_prepare_output);
$this->ctrl =& $ilCtrl;
$this->ctrl->saveParameter($this,array("ref_id","cmdClass"));
if(is_object($this->object->chat_user))
{
$this->object->chat_user->setUserId($_SESSION["AccountId"]);
}
}

+ Here is the call graph for this function:

ilObjChatGUI::infoScreen ( )

show information screen

Definition at line 2221 of file class.ilObjChatGUI.php.

References $_GET.

Referenced by executeCommand(), and infoScreenObject().

{
global $ilAccess;
if (!$ilAccess->checkAccess("visible", "", $this->ref_id))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
$info = new ilInfoScreenGUI($this);
$info->enablePrivateNotes();
if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
//$info->enableNews();
}
// no news editing for files, just notifications
// $info->enableNewsEditing(false);
if ($ilAccess->checkAccess("write", "", $_GET["ref_id"]))
{
// $news_set = new ilSetting("news");
// $enable_internal_rss = $news_set->get("enable_rss_for_internal");
// if ($enable_internal_rss)
// {
// $info->setBlockProperty("news", "settings", true);
// $info->setBlockProperty("news", "public_notifications_option", true);
// }
}
// standard meta data
$info->addMetaDataSections($this->object->getId(),0, $this->object->getType());
// forward the command
$this->ctrl->forwardCommand($info);
}

+ Here is the caller graph for this function:

ilObjChatGUI::infoScreenObject ( )

this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed

Definition at line 2211 of file class.ilObjChatGUI.php.

References infoScreen().

{
$this->ctrl->setCmd("showSummary");
$this->ctrl->setCmdClass("ilinfoscreengui");
$this->infoScreen();
}

+ Here is the call graph for this function:

ilObjChatGUI::inModule ( )

Definition at line 183 of file class.ilObjChatGUI.php.

References $in_module.

{
}
ilObjChatGUI::inputObject ( )

Definition at line 1248 of file class.ilObjChatGUI.php.

References $_GET, $_SESSION, __formatMessage(), ilUtil\sendInfo(), and showInputFrameObject().

{
$this->object->chat_room->setUserId($_SESSION["AccountId"]);
$this->object->chat_room->updateLastVisit();
if(!$_POST["message"])
{
ilUtil::sendInfo($this->lng->txt("chat_insert_message"),true);
return $this->showInputFrameObject();
}
if($_POST["message"] and $this->object->chat_room->checkWriteAccess())
{
// FORMAT MESSAGE
$message = $this->__formatMessage();
// SET MESSAGE AND SEND IT
$this->object->server_comm->setMessage($message);
if((int) $_GET["p_id"])
{
$this->object->server_comm->setType('private');
}
else if((int) $_GET["a_id"])
{
$this->object->server_comm->setType('address');
}
if(!$this->object->server_comm->send())
{
$this->error = $this->lng->txt("chat_no_connection");
}
}
else
{
ilUtil::sendInfo($this->lng->txt('chat_kicked_from_room'),true);
}
}

+ Here is the call graph for this function:

ilObjChatGUI::inviteObject ( )

Definition at line 1287 of file class.ilObjChatGUI.php.

References $_GET, ilUtil\sendInfo(), and showFramesObject().

{
if($_GET["i_id"])
{
$this->object->chat_room->invite((int) $_GET["i_id"]);
$this->object->sendMessage((int) $_GET["i_id"]);
if((int)$this->object->chat_room->getRoomId())
{
ilUtil::sendInfo(sprintf($this->lng->txt("chat_user_invited_private"), $this->object->chat_room->getTitle()),true);
}
else
{
ilUtil::sendInfo(sprintf($this->lng->txt("chat_user_invited_public"), $this->object->getTitle()),true);
}
$this->showFramesObject();
}
}

+ Here is the call graph for this function:

ilObjChatGUI::invitePDObject ( )

Definition at line 1306 of file class.ilObjChatGUI.php.

References $_GET, ilObjUser\_lookupLogin(), ilUtil\redirect(), ilUtil\sendInfo(), and showFramesObject().

{
global $ilUser;
if(!$_GET['usr_id'])
{
ilUtil::sendInfo($this->lng->txt('chat_no_user_selected',true));
$this->showFramesObject();
}
// Create room
$this->object->chat_room->setOwnerId($ilUser->getId());
$this->object->chat_room->setTitle(ilObjUser::_lookupLogin($ilUser->getId()).
' : '.
// only add room if it doesn't exist
if(!$id = $this->object->chat_room->lookupRoomId())
{
$id = $this->object->chat_room->add();
}
// Send message
$this->object->chat_room->setRoomId($id);
$this->object->chat_room->invite((int) $_GET["usr_id"]);
$this->object->sendMessage((int) $_GET['usr_id']);
if((int)$this->object->chat_room->getRoomId())
{
ilUtil::sendInfo(sprintf($this->lng->txt("chat_user_invited_private"), $this->object->chat_room->getTitle()),true);
}
else
{
ilUtil::sendInfo(sprintf($this->lng->txt("chat_user_invited_public"), $this->object->getTitle()),true);
}
ilUtil::redirect('ilias.php?baseClass=ilChatPresentationGUI&ref_id='.$this->object->getRefId().'&room_id='.$id);
}

+ Here is the call graph for this function:

ilObjChatGUI::kickUserObject ( )

Definition at line 321 of file class.ilObjChatGUI.php.

References $_GET, and showFramesObject().

{
global $rbacsystem;
if(!$rbacsystem->checkAccess('moderate',$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_write"),$this->ilias->error_obj->MESSAGE);
}
if($_GET["kick_id"])
{
$tmp_user = new ilObjUser($_GET['kick_id']);
$this->object->server_comm->setKickedUser($tmp_user->getLogin());
$this->object->server_comm->setType("kick");
$this->object->server_comm->send();
$this->object->chat_room->setKicked((int)$_GET['kick_id']);
#ilUtil::sendInfo($this->lng->txt("chat_user_dropped"),true);
$this->showFramesObject();
}
}

+ Here is the call graph for this function:

ilObjChatGUI::recordingsObject ( )

Definition at line 779 of file class.ilObjChatGUI.php.

References ilObjectGUI\$data, ilUtil\formCheckbox(), ilUtil\getImagePath(), ilUtil\sendInfo(), and ilUtil\switchColor().

Referenced by askDeleteRecordingsObject(), deleteRecordingsObject(), and exportRecordingObject().

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("moderate", $this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
$this->tpl->addBlockFile("ADM_CONTENT","adm_content","tpl.chat_recordings.html","Modules/Chat");
$this->object->__initChatRecording();
if (!is_array($data = $this->object->chat_recording->getRecordings()))
{
ilUtil::sendInfo($this->lng->txt('chat_no_recordings_available'));
return true;
}
$this->tpl->setVariable("FORMACTION",$this->ctrl->getFormAction($this));
$this->tpl->setVariable("TBL_TITLE",$this->lng->txt('chat_recordings'));
$this->tpl->setVariable("HEADER_DESC",$this->lng->txt('chat_recording_description'));
$this->tpl->setVariable("HEADER_MOD",$this->lng->txt('chat_recording_moderator'));
$this->tpl->setVariable("HEADER_TIME",$this->lng->txt('chat_recording_time_frame'));
$this->tpl->setVariable("HEADER_ACTION",$this->lng->txt('chat_recording_action'));
$this->tpl->setVariable("IMG_ARROW",ilUtil::getImagePath('arrow_downright.gif'));
$this->tpl->setVariable("BTN_DELETE",$this->lng->txt('delete'));
$counter = 0;
for ($i = 0; $i < count($data); $i++)
{
$this->tpl->setCurrentBlock("recording_row");
$this->tpl->setVariable("CHECKBOX", ilUtil::formCheckbox(0,'recordings[]',$data[$i]["record_id"]));
if($data[$i]["title"] != "")
{
$this->tpl->setVariable("RECORDING_TITLE", $data[$i]["title"]);
}
if ($data[$i]["description"] != "")
{
$this->tpl->setVariable("RECORDING_DESCRIPTION", $data[$i]["description"]);
}
if (is_array($moderator = $this->object->chat_recording->getModerator($data[$i]["moderator_id"])))
{
$this->tpl->setVariable("MODERATOR", $moderator);
}
$this->tpl->setVariable("START_TIME", date("Y-m-d H:i:s", $data[$i]["start_time"]));
if ($data[$i]["end_time"] > 0)
{
$this->tpl->setVariable("END_TIME", date("Y-m-d H:i:s", $data[$i]["end_time"]));
$this->ctrl->setParameter($this,'record_id',$data[$i]["record_id"]);
$this->tpl->setVariable("LINK_EXPORT",$this->ctrl->getLinkTarget($this,'exportRecording'));
$this->tpl->setVariable("TXT_EXPORT",$this->lng->txt('export'));
}
$this->tpl->setVariable("ROW_CLASS",ilUtil::switchColor(++$counter,'tblrow1','tblrow2'));
$this->tpl->parseCurrentBlock();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::renameRoomObject ( )

Definition at line 732 of file class.ilObjChatGUI.php.

References $_SESSION, ilUtil\sendInfo(), ilChatRoom\setRoomId(), ilUtil\stripSlashes(), and viewObject().

{
global $rbacsystem;
if (!$rbacsystem->checkAccess("read", $this->ref_id))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
$room =& new ilChatRoom($this->object->getId());
$room->setRoomId($_SESSION["room_id_rename"]);
$room->setTitle(ilUtil::stripSlashes($_POST["room_name"]));
if(!$room->validate())
{
$this->ilias->raiseError($room->getErrorMessage(),$this->ilias->error_obj->MESSAGE);
}
$room->rename();
unset($_SESSION["room_id_rename"]);
ilUtil::sendInfo($this->lng->txt("chat_room_renamed"));
$this->viewObject();
return true;
}

+ Here is the call graph for this function:

ilObjChatGUI::saveObject ( )

save object

public

Reimplemented from ilObjectGUI.

Definition at line 188 of file class.ilObjChatGUI.php.

References ilObjectGUI\getReturnLocation(), and ilUtil\redirect().

{
global $ilUser,$rbacadmin;
$new_obj =& parent::saveObject();
// Add new moderator role
$roles = $new_obj->initDefaultRoles();
// Assign current user.
$rbacadmin->assignUser($roles[0],$ilUser->getId());
//$this->ctrl->setParameter($this, "ref_id", $new_obj->getRefId());
"ilias.php?baseClass=ilChatHandlerGUI&ref_id=".$new_obj->getRefId()."&amp;cmd=view"));
}

+ Here is the call graph for this function:

ilObjChatGUI::setInModule (   $in_module)

Definition at line 179 of file class.ilObjChatGUI.php.

References $in_module.

{
$this->in_module = $in_module;
}
ilObjChatGUI::setTargetScript (   $a_script)

Definition at line 171 of file class.ilObjChatGUI.php.

{
$this->target_script = $a_script;
}
ilObjChatGUI::showFramesObject ( )

Show top frameset.

Definition at line 1006 of file class.ilObjChatGUI.php.

References $_GET, $ilCtrl, exit, and ilUtil\getStyleSheetLocation().

Referenced by addPrivateRoomObject(), dropObject(), emptyRoomObject(), inviteObject(), invitePDObject(), kickUserObject(), startRecordingObject(), stopRecordingObject(), and unkickUserObject().

{
global $rbacsystem, $ilCtrl;
if (!$rbacsystem->checkAccess("read", $this->ref_id))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
// LOAD FRAMESET
$this->tpl = new ilTemplate("tpl.chat_start.html",false,false,'Modules/Chat');
$this->tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
$ilCtrl->setParameter($this, "room_id", $_REQUEST["room_id"]);
if ($_GET["p_id"])
{
$ilCtrl->setParameter($this, "p_id", $_GET["p_id"]);
}
else if ($_GET["a_id"])
{
$ilCtrl->setParameter($this, "pa_id", $_GET["a_id"]);
$ilCtrl->setParameter($this, "a_id", $_GET["a_id"]);
}
$this->tpl->setVariable("USER_TARGET",
$ilCtrl->getLinkTarget($this, "showUserFrame"));
$this->tpl->setVariable("TOP_TARGET",
$ilCtrl->getLinkTarget($this, "showTopFrame"));
$this->tpl->setVariable("INPUT_TARGET",
$ilCtrl->getLinkTarget($this, "showInputFrame"));
$this->tpl->setVariable("RIGHT_TARGET",
$ilCtrl->getLinkTarget($this, "showRightFrame"));
$this->tpl->setVariable("SERVER_TARGET",$this->object->server_comm->getServerFrameSource());
$this->tpl->show(false, false);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::showInputFrameObject ( )

Definition at line 1107 of file class.ilObjChatGUI.php.

References $_GET, $ilCtrl, __getColorSelect(), __getFontFace(), __getFontType(), __loadStylesheet(), exit, and ilUtil\sendInfo().

Referenced by cancel(), cancelAddressOrWhisperModeObject(), and inputObject().

{
global $rbacsystem, $ilCtrl, $ilUser;
$this->tpl = new ilTemplate("tpl.main.html", true, true);
$this->__loadStylesheet();
$this->tpl->addBlockFile("CONTENT", "content", "tpl.chat_input_frame.html",'Modules/Chat');
if($this->error)
{
ilUtil::sendInfo($this->error);
}
// @todo: mjansen: enable chat for anonymous users
if(true || $ilUser->getId() != ANONYMOUS_USER_ID)
{
if($_GET["p_id"])
{
$user_obj =& new ilObjUser((int) $_GET["p_id"]);
$message = $this->lng->txt("chat_private_message")." ";
$message .= $this->object->chat_user->getLogin()." -> ".$user_obj->getLogin();
ilUtil::sendInfo($message);
}
else if($_GET["a_id"])
{
$user_obj =& new ilObjUser((int) $_GET["a_id"]);
$message = $this->lng->txt("chat_address_user")." ".$user_obj->getLogin();
ilUtil::sendInfo($message);
}
$ilCtrl->setParameter($this, "room_id", $_REQUEST["room_id"]);
if ($_GET["p_id"])
{
$ilCtrl->setParameter($this, "p_id", $_GET["p_id"]);
}
else if ($_GET["a_id"])
{
$ilCtrl->setParameter($this, "a_id", $_GET["a_id"]);
}
$this->tpl->setVariable("FORMACTION", $ilCtrl->getFormAction($this, "input"));
$ilCtrl->clearParameters($this);
$this->tpl->setVariable("TXT_NEW_MESSAGE",$this->lng->txt('chat_new_message'));
$this->tpl->setVariable("TXT_COLOR",$this->lng->txt("chat_color"));
$this->tpl->setVariable("TXT_TYPE",$this->lng->txt("chat_type"));
$this->tpl->setVariable("TXT_FACE",$this->lng->txt("chat_face"));
$this->tpl->setVariable("TXT_INPUT",$this->lng->txt("chat_input"));
if ($_GET["p_id"])
{
$this->tpl->setCurrentBlock("cancel");
$this->tpl->setVariable("TXT_SUBMIT_CANCEL",$this->lng->txt("cancel_whisper"));
$this->tpl->parseCurrentBlock();
$this->tpl->setVariable("TXT_SUBMIT_OK",$this->lng->txt("ok"));
}
elseif($_GET["a_id"])
{
$this->tpl->setCurrentBlock("cancel");
$this->tpl->setVariable("TXT_SUBMIT_CANCEL",$this->lng->txt("cancel_talk"));
$this->tpl->parseCurrentBlock();
$this->tpl->setVariable("TXT_SUBMIT_OK",$this->lng->txt("ok"));
}
else
{
$this->tpl->setVariable("TXT_SUBMIT_OK",$this->lng->txt("ok"));
}
$this->tpl->setVariable("TXT_HTML_EXPORT",$this->lng->txt('exp_html'));
$this->tpl->setVariable("SELECT_COLOR",$this->__getColorSelect());
$this->tpl->setVariable("RADIO_TYPE",$this->__getFontType());
$this->tpl->setVariable("CHECK_FACE",$this->__getFontFace());
if ($rbacsystem->checkAccess("moderate", $this->object->getRefId()))
{
$this->object->__initChatRecording();
$this->tpl->setCurrentBlock("moderator");
$this->object->chat_recording->setRoomId($this->object->chat_room->getRoomId());
if ($this->object->chat_recording->isRecording())
{
if ($this->object->chat_recording->getTitle() != "")
{
$this->tpl->setVariable("TXT_TITLE_STOP_RECORDING", $this->lng->txt("chat_recording_title"));
$this->tpl->setVariable("VAL_TITLE_STOP_RECORDING", $this->object->chat_recording->getTitle());
}
if ($this->object->chat_recording->getDescription() != "")
{
$this->tpl->setVariable("TXT_DESCRIPTION_STOP_RECORDING", $this->lng->txt("chat_recording_description"));
$this->tpl->setVariable("VAL_DESCRIPTION_STOP_RECORDING", $this->object->chat_recording->getDescription());
}
$this->tpl->setVariable("TXT_SUBMIT_STOP_RECORDING", $this->lng->txt("chat_stop_recording"));
}
else
{
$this->tpl->setVariable("TXT_TITLE_START_RECORDING", $this->lng->txt("chat_recording_title"));
$this->tpl->setVariable("TXT_DESCRIPTION_START_RECORDING", $this->lng->txt("chat_recording_description"));
$this->tpl->setVariable("TXT_SUBMIT_START_RECORDING", $this->lng->txt("chat_start_recording"));
}
$ilCtrl->setParameter($this, "room_id", $this->object->chat_room->getRoomId());
$this->tpl->setVariable("MODERATOR_FORMACTION",
$ilCtrl->getFormAction($this, "startRecording"));
$this->tpl->setVariable("TXT_RECORDINGS",$this->lng->txt('chat_recordings'));
$this->tpl->setVariable("MODERATOR_TARGET","_top");
$this->tpl->parseCurrentBlock("moderator");
}
}
// permanent link
$this->tpl->setCurrentBlock('perma_link');
$this->tpl->setVariable('PERMA_LINK', ILIAS_HTTP_PATH.'/goto.php?target='.$this->object->getType().'_'.$this->object->getRefId().'&client_id='.CLIENT_ID);
$this->tpl->setVariable('TXT_PERMA_LINK', $this->lng->txt('chat_link_to_this_chat'));
$this->tpl->setVariable('PERMA_TARGET', '_top');
$this->tpl->parseCurrentBlock();
$this->tpl->show(false);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjChatGUI::showRightFrameObject ( )

Definition at line 1222 of file class.ilObjChatGUI.php.

References __loadStylesheet(), and exit.

{
$this->tpl = new ilTemplate("tpl.main.html", true, true);
$this->__loadStylesheet();
$this->tpl->addBlockFile("CONTENT", "content", "tpl.chat_right_frame.html",'Modules/Chat');
$this->tpl->show(false);
}

+ Here is the call graph for this function:

ilObjChatGUI::showTopFrameObject ( )

Definition at line 1097 of file class.ilObjChatGUI.php.

References __loadStylesheet(), and exit.

{
$this->tpl = new ilTemplate("tpl.main.html", true, true);
$this->__loadStylesheet();
$this->tpl->addBlockFile("CONTENT", "content", "tpl.chat_top_frame.html",'Modules/Chat');
//$this->tpl->setVariable("TXT_NEW_MESSAGE",'Current discussion');
$this->tpl->show(false);
}

+ Here is the call graph for this function:

ilObjChatGUI::showUserFrameObject ( )

Show user frame.

Definition at line 1046 of file class.ilObjChatGUI.php.

References $_SESSION, $ilCtrl, __loadStylesheet(), __showActiveUsers(), __showOnlineUsers(), __showRooms(), and exit.

{
global $ilCtrl, $ilMainMenu, $ilLocator, $ilUser;
$this->object->chat_room->setUserId($_SESSION["AccountId"]);
$this->object->chat_room->updateLastVisit();
$this->tpl = new ilTemplate("tpl.main.html", true, true);
$this->__loadStylesheet(true);
$this->tpl->addBlockFile("CONTENT", "content", "tpl.chat_user_frame.html",'Modules/Chat');
$this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
$ilMainMenu->setSmallMode(true);
$this->tpl->setVariable("MAINMENU", $ilMainMenu->getHTML());
$this->tpl->addJavascript("./Services/Javascript/js/Basic.js");
$this->tpl->addJavascript("./Services/Navigation/js/ServiceNavigation.js");
$this->tpl->fillJavaScriptFiles();
$ilLocator->addRepositoryItems($this->object->getRefId());
$ilLocator->addItem($this->object->getTitle(), 'repository.php?ref_id='.$this->object->getRefId(), '_top', $this->object->getRefId());
$this->tpl->setLocator();
if($_REQUEST["room_id"])
{
$this->tpl->setVariable("TITLE",$this->object->chat_room->getTitle());
}
else
{
$this->tpl->setVariable("TITLE",$this->object->getTitle());
}
$this->__showRooms();
if($ilUser->getId() != ANONYMOUS_USER_ID)
{
$ilCtrl->setParameter($this, "room_id", $this->object->chat_room->getRoomId());
$this->tpl->setVariable("ADD_FORMACTION",
$ilCtrl->getFormAction($this, "addPrivateRoom"));
$this->tpl->setVariable("TXT_ADD_PRIVATE_CHATROOM", $this->lng->txt("chat_add_private_chatroom"));
$this->tpl->setVariable("TXT_ADD", $this->lng->txt("add"));
}
if($this->object->chat_room->isOwner())
{
}
$this->tpl->show(false);
exit;
}

+ Here is the call graph for this function:

ilObjChatGUI::showUserProfileObject ( )

Definition at line 2181 of file class.ilObjChatGUI.php.

References $_GET, $ilCtrl, ilObjectGUI\$tpl, and exit.

{
global $tpl, $ilCtrl;
require_once './Services/User/classes/class.ilPublicUserProfileGUI.php';
//$tpl->addBlockFile('CONTENT', 'content', 'tpl.chat_profile_view.html','Modules/Chat');
$profile_gui = new ilPublicUserProfileGUI((int)$_GET['user']);
//$tpl->setVariable('USR_PROFILE', $ilCtrl->getHTML($profile_gui));
$tpl->setContent($ilCtrl->getHTML($profile_gui));
$tpl->show();
exit();
}
ilObjChatGUI::startRecordingObject ( )

Definition at line 958 of file class.ilObjChatGUI.php.

References $_GET, ilUtil\sendInfo(), and showFramesObject().

{
global $rbacsystem,$ilUser;
if (!$rbacsystem->checkAccess("moderate", $this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
$this->object->__initChatRecording();
if($_GET["room_id"])
{
$this->object->chat_recording->setRoomId($_GET["room_id"]);
}
if (!$this->object->chat_recording->isRecording())
{
$this->object->chat_recording->setModeratorId($ilUser->getId());
$this->object->chat_recording->startRecording($_POST["title"]);
}
ilUtil::sendInfo($this->lng->txt("chat_recording_started"),true);
$this->showFramesObject();
}

+ Here is the call graph for this function:

ilObjChatGUI::stopRecordingObject ( )

Definition at line 981 of file class.ilObjChatGUI.php.

References $_GET, ilUtil\sendInfo(), and showFramesObject().

{
global $rbacsystem,$ilUser;
if (!$rbacsystem->checkAccess("moderate", $this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
$this->object->__initChatRecording();
if($_GET["room_id"])
{
$this->object->chat_recording->setRoomId($_GET["room_id"]);
}
if ($this->object->chat_recording->isRecording())
{
$this->object->chat_recording->stopRecording($ilUser->getId());
}
ilUtil::sendInfo($this->lng->txt("chat_recording_stopped"),true);
$this->showFramesObject();
}

+ Here is the call graph for this function:

ilObjChatGUI::unblockUsersObject ( )

Definition at line 291 of file class.ilObjChatGUI.php.

References blockedUsersObject(), and ilUtil\sendInfo().

{
include_once 'Modules/Chat/classes/class.ilChatBlockedUsers.php';
global $rbacsystem;
if(!$rbacsystem->checkAccess('moderate',$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_write"),$this->ilias->error_obj->MESSAGE);
}
$blocked_obj = new ilChatBlockedUsers($this->object->getId());
if(!is_array($_POST['blocked_check']))
{
ilUtil::sendInfo($this->lng->txt('chat_no_users_selected'));
return $this->blockedUsersObject();
}
foreach($_POST['blocked_check'] as $usr_id)
{
$blocked_obj->unblock($usr_id);
}
ilUtil::sendInfo($this->lng->txt('chat_unblocked_user'));
return $this->blockedUsersObject();
}

+ Here is the call graph for this function:

ilObjChatGUI::unkickUserObject ( )

Definition at line 345 of file class.ilObjChatGUI.php.

References $_GET, and showFramesObject().

{
global $rbacsystem;
if(!$rbacsystem->checkAccess('moderate',$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_write"),$this->ilias->error_obj->MESSAGE);
}
if($_GET["kick_id"])
{
$this->object->chat_room->setUnkicked((int)$_GET['kick_id']);
#ilUtil::sendInfo($this->lng->txt("chat_user_dropped"),true);
$this->showFramesObject();
}
}

+ Here is the call graph for this function:

ilObjChatGUI::viewObject ( )

list childs of current object

public

Reimplemented from ilObjectGUI.

Definition at line 363 of file class.ilObjChatGUI.php.

References $_GET, $_SESSION, __showAdminAddRoomSelect(), __showAdminRoomSelect(), ilChatRoom\_getCountActiveUsers(), ilChatBlockedUsers\_isBlocked(), ilUtil\formCheckbox(), ilUtil\getImagePath(), and ilUtil\sendInfo().

Referenced by addRoomObject(), adminRoomsObject(), confirmedDeleteRoomObject(), and renameRoomObject().

{
if (strtolower($_GET["baseClass"]) == "iladministrationgui")
{
return true;
}
// Check blocked
include_once 'Modules/Chat/classes/class.ilChatBlockedUsers.php';
global $rbacsystem,$ilUser;
if (!$rbacsystem->checkAccess("read", $this->ref_id))
{
$this->ilias->raiseError($this->lng->txt("msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
}
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.chat_view.html","Modules/Chat");
// CHAT SERVER NOT ACTIVE
if(!$this->object->server_comm->isAlive() or !$this->ilias->getSetting("chat_active"))
{
ilUtil::sendInfo($this->lng->txt("chat_server_not_active"));
}
if(ilChatBlockedUsers::_isBlocked($this->object->getId(),$ilUser->getId()))
{
ilUtil::sendInfo($this->lng->txt('chat_access_blocked'));
return true;
}
// DELETE ROOMS CONFIRM
$checked = array();
if($_SESSION["room_id_delete"])
{
$checked = $_SESSION["room_id_delete"];
ilUtil::sendInfo($this->lng->txt("chat_delete_sure"));
$this->tpl->setCurrentBlock("confirm_delete");
$this->tpl->setVariable("TXT_DELETE_CANCEL",$this->lng->txt("cancel"));
$this->tpl->setVariable("TXT_DELETE_CONFIRM",$this->lng->txt("delete"));
$this->tpl->parseCurrentBlock();
}
// SHOW ROOMS TABLE
$this->tpl->setVariable("TYPE_IMG",ilUtil::getImagePath('icon_chat.gif'));
$this->tpl->setVariable("ALT_IMG",$this->lng->txt('obj_chat'));
$this->tpl->setVariable("TITLE",$this->lng->txt('chat_rooms'));
$this->tpl->setVariable("FORMACTION",$this->ctrl->getFormAction($this));
$this->tpl->setVariable("TXT_CHATROOMS",$this->lng->txt("chat_chatrooms"));
$this->tpl->setVariable("ACTIONS",$this->lng->txt('actions'));
$counter = 0;
if($rbacsystem->checkAccess('write',$this->ref_id))
{
$rooms = $this->object->chat_room->getAllRoomsOfObject();
}
else
{
$this->object->chat_room->setOwnerId($_SESSION["AccountId"]);
$rooms = $this->object->chat_room->getRoomsOfObject();
}
$script = './ilias.php?baseClass=ilChatPresentationGUI';
// ADD PUBLIC ROOM
// CHAT SERVER ACTIVE
if(ilChatBlockedUsers::_isBlocked($this->object->getId(),$ilUser->getId()))
{
$this->tpl->setCurrentBlock("blocked");
$this->tpl->setVariable("MESSAGE_BLOCKED",$this->lng->txt('chat_blocked'));
$this->tpl->parseCurrentBlock();
}
elseif($this->object->server_comm->isAlive() and $this->ilias->getSetting("chat_active"))
{
$this->tpl->setCurrentBlock("active");
$this->tpl->setVariable("ROOM_LINK",$script."&ref_id=".$this->ref_id."&room_id=0");
$this->tpl->setVariable("ROOM_TARGET","chat");
$this->tpl->setVariable("ROOM_TXT_LINK",$this->lng->txt("show"));
$this->tpl->parseCurrentBlock();
}
else
{
$this->tpl->touchBlock("not_active");
}
$this->tpl->setCurrentBlock("tbl_rooms_row");
$this->tpl->setVariable("ROWCOL",++$counter % 2 ? "tblrow1" : "tblrow2");
$this->tpl->setVariable("ROOM_CHECK",
ilUtil::formCheckbox(in_array(0,$checked) ? 1 : 0,
"del_id[]",
0));
$this->tpl->setVariable("ROOM_NAME",$this->object->getTitle()." ".$this->lng->txt("chat_public_room"));
$this->tpl->setVariable("USERS_ONLINE",
$this->lng->txt('chat_users_active').': '.
ilChatRoom::_getCountActiveUsers($this->object->getId()));
$this->tpl->parseCurrentBlock();
foreach($rooms as $room)
{
// CHAT SERVER ACTIVE
if($this->object->server_comm->isAlive() and $this->ilias->getSetting("chat_active"))
{
$this->tpl->setCurrentBlock("active");
$this->tpl->setVariable("ROOM_LINK",$script."&ref_id=".$this->ref_id."&room_id=".$room["room_id"]);
$this->tpl->setVariable("ROOM_TARGET","chat");
$this->tpl->setVariable("ROOM_TXT_LINK",$this->lng->txt("show"));
$this->tpl->parseCurrentBlock();
}
else
{
$this->tpl->touchBlock("not_active");
}
$this->tpl->setCurrentBlock("tbl_rooms_row");
$this->tpl->setVariable("ROWCOL",++$counter % 2 ? "tblrow1" : "tblrow2");
$this->tpl->setVariable("ROOM_CHECK",
ilUtil::formCheckbox(in_array($room["room_id"],$checked) ? 1 : 0,
"del_id[]",
$room["room_id"]));
$this->tpl->setVariable("ROOM_NAME",$room["title"]);
$this->tpl->setVariable("USERS_ONLINE",
$this->lng->txt('chat_users_active').': '.
ilChatRoom::_getCountActiveUsers($this->object->getId(),$room['room_id']));
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("has_rooms");
$this->tpl->setVariable("TBL_FOOTER_IMG_SRC", ilUtil::getImagePath("arrow_downright.gif"));
$this->tpl->setVariable("TBL_FOOTER_SELECT",$this->__showAdminRoomSelect(count($rooms)));
$this->tpl->setVariable("FOOTER_HAS_ROOMS_OK",$this->lng->txt("ok"));
$this->tpl->parseCurrentBlock();
$this->tpl->setVariable("TBL_FOOTER_ADD_SELECT",$this->__showAdminAddRoomSelect());
$this->tpl->setVariable("FOOTER_OK",$this->lng->txt("add"));
// permanent link
$this->tpl->setCurrentBlock("perma_link");
$this->tpl->setVariable("PERMA_LINK", ILIAS_HTTP_PATH.
"/goto.php?target=".
$this->object->getType().
"_".$this->object->getRefId()."&client_id=".CLIENT_ID);
$this->tpl->setVariable("TXT_PERMA_LINK", $this->lng->txt("perma_link"));
$this->tpl->setVariable("PERMA_TARGET", "_top");
$this->tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilObjChatGUI::$in_module = false

Definition at line 43 of file class.ilObjChatGUI.php.

Referenced by inModule(), and setInModule().

ilObjChatGUI::$target_script = "adm_object.php"

Definition at line 42 of file class.ilObjChatGUI.php.


The documentation for this class was generated from the following file: