42         $chatSettings = 
new ilSetting(
'chatroom');
    43         $this->chat_enabled = (bool) $chatSettings->get(
'chat_enabled');
    44         $this->osc_enabled = (bool) $chatSettings->get(
'enable_osc');
    46         $this->
lng->loadLanguageModule(
'chatroom');
    47         $this->
ctrl = $DIC->ctrl();
    61             "invite" => $this->
lng->txt(
'chat_user_action_invite_public_room'),
    62             "invite_osd" => $this->
lng->txt(
'chat_user_action_invite_osd')
    68         if (!array_key_exists($a_user_id, self::$user_access)) {
    69             self::$user_access[$a_user_id] = 
$GLOBALS[
'DIC']->rbac()->system()->checkAccessOfUser($a_user_id, 
'read', $this->pub_ref_id);
    72         return self::$user_access[$a_user_id];
    77         if (!array_key_exists($a_user_id, self::$accepts_messages_cache)) {
    83         return (
bool) self::$accepts_messages_cache[$a_user_id];
    93         if (!$this->chat_enabled) {
   100                 $f->setType(
"invite");
   101                 $f->setText($this->
lng->txt(
'chat_user_action_invite_public_room'));
   102                 $this->
ctrl->setParameterByClass(ilObjChatroomGUI::class, 
'ref_id', $this->pub_ref_id);
   103                 $this->
ctrl->setParameterByClass(ilObjChatroomGUI::class, 
'user', $a_target_user);
   104                 $f->setHref($this->
ctrl->getLinkTargetByClass([ilRepositoryGUI::class, ilObjChatroomGUI::class], 
'inviteUsersToPrivateRoom-byId'));
   105                 $coll->addAction(
$f);
   109         if ($this->osc_enabled && $a_target_user != $this->
getUserId()) {
   112             $f->setType(
"invite_osd");
   114                 $f->setText($this->
lng->txt(
'chat_osc_start_conversation'));
   116                     'onscreenchat-userid' => $a_target_user,
   120                 $f->setText($this->
lng->txt(
'chat_osc_doesnt_accept_msg'));
   122                     'onscreenchat-inact-userid' => $a_target_user
   125             $coll->addAction(
$f);
 
static array $user_access
 
A class that provides a collection of actions on users. 
 
collectActionsForTargetUser(int $a_target_user)
Collect all actions. 
 
static _lookupPref(int $a_usr_id, string $a_keyword)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static array $accepts_messages_cache
 
acceptsMessages(int $a_user_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
__construct(Container $dic, ilPlugin $plugin)
 
static yn2tf(string $a_yn)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
checkUserChatAccess(int $a_user_id)
 
static _lookupLogin(int $a_user_id)