19 declare(strict_types=1);
32 public function __construct(
int $a_context = self::CONTEXT_REPOSITORY)
38 public function init(): void
40 $this->delete_enabled =
true;
41 $this->cut_enabled =
true;
42 $this->copy_enabled =
true;
43 $this->subscribe_enabled =
true;
44 $this->link_enabled =
true;
45 $this->info_screen_enabled =
true;
47 $this->gui_class_name =
'ilobjchatroomgui';
56 $this->
lng->loadLanguageModule(
'chatroom');
62 'property' => $this->
lng->txt(
'chat_users_active'),
63 'value' => $room->countActiveUsers()
66 if ($this->obj_id === self::$publicRoomObjId) {
69 'property' => $this->
lng->txt(
'notice'),
70 'value' => $this->
lng->txt(
'public_room')
74 if (self::$chat_enabled ===
null) {
76 self::$chat_enabled = (bool) $chatSetting->get(
'chat_enabled',
'0');
79 if (!self::$chat_enabled) {
82 'property' => $this->
lng->txt(
'chtr_server_status'),
83 'value' => $this->
lng->txt(
'server_disabled')
90 'property' => $this->
lng->txt(
'status'),
91 'value' => $this->
lng->txt(
'offline')
static bool $chat_enabled
Class ilObjChatlistListGUI.
static lookupOfflineStatus(int $obj_id)
Lookup offline status using objectDataCache.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(int $a_context=self::CONTEXT_REPOSITORY)
static int $publicRoomObjId
__construct(Container $dic, ilPlugin $plugin)
static byObjectId(int $object_id)