3 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
4 include_once(
"./Services/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
15 $this->serverActive = $active;
16 $this->objectRef = $a_ref;
19 $this->
setTitle($lng->txt(
'chat_rooms'));
20 $this->
setId(
'cht_room_table_' . $a_ref->object->getId());
21 $this->
addColumn(
'',
'checkbox',
'1%',
true);
22 $this->
addColumn($lng->txt(
'chat_rooms'),
'room' ,
'79%');
23 $this->
addColumn($lng->txt(
"actions"),
'' ,
'20%');
26 $this->
setRowTemplate(
'tpl.chat_room_list_row.html',
'Modules/Chat');
31 $ilSetting->get(
'chat_export_status') == 0 ||
33 $ilSetting->get(
'chat_export_status') == 1 &&
34 $rbacsystem->checkAccess(
"moderate", $this->objectRef->ref_id)
53 $this->tpl->setVariable(
'VAL_ROOM_ID', $a_set[
'room_id']);
54 $this->tpl->setVariable(
'VAL_ROOM_TITLE', $a_set[
'title']);
55 $this->tpl->setVariable(
'VAL_TXT_USERS', $this->lng->txt(
'chat_users_active'));
56 $this->tpl->setVariable(
'VAL_USERS', $a_set[
'usercount']);
59 $current_selection_list->setListTitle($lng->txt(
"actions"));
60 $current_selection_list->setId(
"act_".$a_set[
'room_id']);
62 if ($this->serverActive)
64 $current_selection_list->addItem($this->lng->txt(
"show"),
'',
'./ilias.php?baseClass=ilChatPresentationGUI&ref_id='.$this->objectRef->ref_id.
'&room_id='.$a_set[
'room_id'],
'',
'',
'CHAT');
67 $this->tpl->setVariable(
'VAL_LINK_SHOW',
'./ilias.php?baseClass=ilChatPresentationGUI&ref_id='.$this->objectRef->ref_id.
'&room_id='.$a_set[
'room_id']);
68 $this->tpl->setVariable(
'VAL_SHOW_TARGET',
'CHAT');
71 if ($this->hasWritePerm && $a_set[
'room_id'])
73 $ilCtrl->setParameter($this->objectRef,
'room_id', $a_set[
'room_id']);
74 $current_selection_list->addItem($this->lng->txt(
"rename"),
'', $ilCtrl->getLinkTarget($this->objectRef,
'rename'));
75 $ilCtrl->clearParameters($this->objectRef);
77 $ilCtrl->setParameter($this->objectRef,
'del_id', $a_set[
'room_id']);
78 $current_selection_list->addItem($this->lng->txt(
"delete"),
'', $ilCtrl->getLinkTarget($this->objectRef,
'deleteRoom'));
79 $current_selection_list->addItem($this->lng->txt(
"chat_refresh"),
'', $ilCtrl->getLinkTarget($this->objectRef,
'refreshRoom'));
80 $ilCtrl->clearParameters($this->objectRef);
85 $ilSetting->get(
'chat_export_status') == 0 ||
87 $ilSetting->get(
'chat_export_status') == 1 &&
88 $rbacsystem->checkAccess(
"moderate", $this->objectRef->ref_id)
92 $ilCtrl->setParameter($this->objectRef,
'del_id', $a_set[
'room_id']);
93 $current_selection_list->addItem($this->lng->txt(
"chat_html_export"),
'', $ilCtrl->getLinkTarget($this->objectRef,
'exportRoom'));
94 $ilCtrl->clearParameters($this->objectRef);
97 $this->tpl->setVariable(
'ACTION_LIST', $current_selection_list->getHTML());