6 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
7 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
18 $this->serverActive = $active;
19 $this->objectRef = $a_ref;
22 $this->
setTitle($lng->txt(
'chat_rooms'));
23 $this->
setId(
'cht_room_table_' . $a_ref->object->getId());
24 $this->
addColumn(
'',
'checkbox',
'1%',
true);
25 $this->
addColumn($lng->txt(
'chat_rooms'),
'room' ,
'79%');
26 $this->
addColumn($lng->txt(
"actions"),
'' ,
'20%');
29 $this->
setRowTemplate(
'tpl.chat_room_list_row.html',
'Modules/Chat');
34 $ilSetting->get(
'chat_export_status') == 0 ||
36 $ilSetting->get(
'chat_export_status') == 1 &&
37 $rbacsystem->checkAccess(
"moderate", $this->objectRef->ref_id)
56 $this->tpl->setVariable(
'VAL_ROOM_ID', $a_set[
'room_id']);
57 $this->tpl->setVariable(
'VAL_ROOM_TITLE', $a_set[
'title']);
58 $this->tpl->setVariable(
'VAL_TXT_USERS', $this->lng->txt(
'chat_users_active'));
59 $this->tpl->setVariable(
'VAL_USERS', $a_set[
'usercount']);
62 $current_selection_list->setListTitle($lng->txt(
"actions"));
63 $current_selection_list->setId(
"act_".$a_set[
'room_id']);
65 if ($this->serverActive)
67 $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');
70 $this->tpl->setVariable(
'VAL_LINK_SHOW',
'./ilias.php?baseClass=ilChatPresentationGUI&ref_id='.$this->objectRef->ref_id.
'&room_id='.$a_set[
'room_id']);
71 $this->tpl->setVariable(
'VAL_SHOW_TARGET',
'CHAT');
74 if ($this->hasWritePerm && $a_set[
'room_id'])
76 $ilCtrl->setParameter($this->objectRef,
'room_id', $a_set[
'room_id']);
77 $current_selection_list->addItem($this->lng->txt(
"rename"),
'', $ilCtrl->getLinkTarget($this->objectRef,
'rename'));
78 $ilCtrl->clearParameters($this->objectRef);
80 $ilCtrl->setParameter($this->objectRef,
'del_id', $a_set[
'room_id']);
81 $current_selection_list->addItem($this->lng->txt(
"delete"),
'', $ilCtrl->getLinkTarget($this->objectRef,
'deleteRoom'));
82 $current_selection_list->addItem($this->lng->txt(
"chat_refresh"),
'', $ilCtrl->getLinkTarget($this->objectRef,
'refreshRoom'));
83 $ilCtrl->clearParameters($this->objectRef);
88 $ilSetting->get(
'chat_export_status') == 0 ||
90 $ilSetting->get(
'chat_export_status') == 1 &&
91 $rbacsystem->checkAccess(
"moderate", $this->objectRef->ref_id)
95 $ilCtrl->setParameter($this->objectRef,
'del_id', $a_set[
'room_id']);
96 $current_selection_list->addItem($this->lng->txt(
"chat_html_export"),
'', $ilCtrl->getLinkTarget($this->objectRef,
'exportRoom'));
97 $ilCtrl->clearParameters($this->objectRef);
100 $this->tpl->setVariable(
'ACTION_LIST', $current_selection_list->getHTML());