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';
66 require_once
'Modules/Chatroom/classes/class.ilChatroom.php';
71 'alert' =>
false,
'property' => $lng->txt(
'chat_users_active'),
72 'value' => $room->countActiveUsers()
75 if($this->obj_id == self::$publicRoomObjId)
77 $props[] =
array(
'alert' =>
false,
'property' => $lng->txt(
'notice'),
'value' => $lng->txt(
'public_room'));
80 if(self::$chat_enabled === null)
83 self::$chat_enabled = (boolean)$chatSetting->get(
'chat_enabled');
86 if(!self::$chat_enabled)
88 $props[] =
array(
'alert' =>
true,
'property' => $lng->txt(
'status'),
'value' => $lng->txt(
'server_disabled'));
Class ilObjChatlistListGUI.
__construct($a_context=self::CONTEXT_REPOSITORY)
{}
getProperties()
Get item properties.
Create styles array
The data for the language used.
static byObjectId($object_id)
Returns ilChatroom object by given $object_id.