19declare(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 byObjectId(int $object_id)
static _getCommands()
get commands
Class ilObjChatlistListGUI.
static int $publicRoomObjId
getProperties()
Get item properties.
__construct(int $a_context=self::CONTEXT_REPOSITORY)
static bool $chat_enabled
static lookupOfflineStatus(int $obj_id)
Lookup offline status using objectDataCache.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc