19 declare(strict_types=1);
    23     public function __construct(
int $a_id = 0, 
bool $a_call_by_reference = 
true)
    33         return (
int) $settings->get(
'public_room_ref', 
'0');
    40         $rset = $DIC->database()->query(
    41             'SELECT object_id FROM chatroom_settings WHERE room_type = ' . $DIC->database()->quote(
'default', 
'text')
    43         if ($row = $DIC->database()->fetchAssoc($rset)) {
    44             return (
int) $row[
'object_id'];
    67             'il_chat_moderator_' . $this->
getRefId(),
    68             'Moderator of chat obj_no.' . $this->
getId(),
    78         $newObj = parent::cloneObject($target_id, $copy_id, $omit_tree);
    82         $original_settings = $original_room->getSettings();
    85         $original_settings[
'object_id'] = 
$objId;
    87         $room->saveSettings($original_settings);
    89         $rbac_log_roles = $this->rbac_review->getParentRoleIds($newObj->getRefId(), 
false);
    96         $connector->sendCreatePrivateRoom($room->getRoomId(), $newObj->getOwner(), $newObj->getTitle());
   101     public function delete(): 
bool   103         $this->db->manipulateF(
   104             'DELETE FROM chatroom_users WHERE chatroom_users.room_id IN (SELECT chatroom_settings.room_id FROM chatroom_settings WHERE chatroom_settings.object_id = %s)',
   109         $this->db->manipulateF(
   110             'DELETE FROM chatroom_history WHERE chatroom_history.room_id IN (SELECT chatroom_settings.room_id FROM chatroom_settings WHERE chatroom_settings.object_id = %s)',
   115         $this->db->manipulateF(
   116             'DELETE FROM chatroom_bans WHERE chatroom_bans.room_id IN (SELECT chatroom_settings.room_id FROM chatroom_settings WHERE chatroom_settings.object_id = %s)',
   121         $this->db->manipulateF(
   122             'DELETE FROM chatroom_sessions WHERE chatroom_sessions.room_id IN (SELECT chatroom_settings.room_id FROM chatroom_settings WHERE chatroom_settings.object_id = %s)',
   128         $this->db->manipulateF(
   129             'DELETE FROM chatroom_settings WHERE object_id = %s',
   134         return parent::delete();
 
getUserId()
Returns Ilias User ID. 
 
static getDefaultConfiguration()
Instantiates and returns ilChatroomAdmin object using instance_id and settings from settingsTable...
 
__construct(int $a_id=0, bool $a_call_by_reference=true)
 
static createDefaultRole(string $a_title, string $a_description, string $a_tpl_name, int $a_ref_id)
 
static gatherFaPa(int $ref_id, array $role_ids, bool $add_action=false)
 
Class ilChatroomServerConnector. 
 
cloneObject(int $target_id, int $copy_id=0, bool $omit_tree=false)
 
static add(int $action, int $ref_id, array $diff, bool $source_ref_id=false)
 
__construct(Container $dic, ilPlugin $plugin)
 
static byObjectId(int $object_id)
 
getUsername()
Returns username from Object or SESSION. 
 
getPersonalInformation(ilChatroomUser $user)