4 require_once
'Services/Object/classes/class.ilObjectListGUI.php';
27 public function __construct($a_context = self::CONTEXT_REPOSITORY)
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 $DIC->language()->loadLanguageModule(
'chatroom');
68 'alert' =>
false,
'property' => $DIC->language()->txt(
'chat_users_active'),
69 'value' => $room->countActiveUsers()
72 if ($this->obj_id == self::$publicRoomObjId) {
75 'property' => $DIC->language()->txt(
'notice'),
76 'value' => $DIC->language()->txt(
'public_room')
80 if (self::$chat_enabled === null) {
82 self::$chat_enabled = (boolean) $chatSetting->get(
'chat_enabled');
85 if (!self::$chat_enabled) {
88 'property' => $DIC->language()->txt(
'chtr_server_status'),
89 'value' => $DIC->language()->txt(
'server_disabled')
93 if (!$room->getSetting(
'online_status')) {
95 'alert' =>
true,
'property' => $DIC->language()->txt(
'status'),
96 'value' => $DIC->language()->txt(
'offline')
Class ilObjChatlistListGUI.
__construct($a_context=self::CONTEXT_REPOSITORY)
{}
__construct(Container $dic, ilPlugin $plugin)
static byObjectId($object_id)
Returns ilChatroom object by given $object_id.