4 require_once
'Services/Object/classes/class.ilObjectListGUI.php';
27 public function __construct($a_context = self::CONTEXT_REPOSITORY)
29 parent::__construct($a_context);
31 require_once
'Modules/Chatroom/classes/class.ilObjChatroom.php';
41 $this->delete_enabled =
true;
42 $this->cut_enabled =
true;
43 $this->copy_enabled =
true;
44 $this->subscribe_enabled =
true;
45 $this->link_enabled =
true;
46 $this->info_screen_enabled =
true;
48 $this->gui_class_name =
'ilobjchatroomgui';
50 require_once
'Modules/Chatroom/classes/class.ilObjChatroomAccess.php';
63 require_once
'Modules/Chatroom/classes/class.ilChatroom.php';
67 'alert' =>
false,
'property' => $DIC->language()->txt(
'chat_users_active'),
68 'value' => $room->countActiveUsers()
71 if ($this->obj_id == self::$publicRoomObjId) {
72 $props[] = array(
'alert' =>
false,
'property' => $DIC->language()->txt(
'notice'),
'value' => $DIC->language()->txt(
'public_room'));
75 if (self::$chat_enabled === null) {
77 self::$chat_enabled = (boolean) $chatSetting->get(
'chat_enabled');
80 if (!self::$chat_enabled) {
81 $props[] = array(
'alert' =>
true,
'property' => $DIC->language()->txt(
'chtr_server_status'),
'value' => $DIC->language()->txt(
'server_disabled'));
84 if (!$room->getSetting(
'online_status')) {
85 $props[] = array(
'alert' =>
true,
'property' => $DIC->language()->txt(
'status'),
86 'value' => $DIC->language()->txt(
'offline'));
Class ilObjChatlistListGUI.
__construct($a_context=self::CONTEXT_REPOSITORY)
{}
static byObjectId($object_id)
Returns ilChatroom object by given $object_id.