|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Class ilChatroom. More...
Collaboration diagram for ilChatroom:Public Member Functions | |
| initialize (array $rowdata) | |
| Sets $this->roomId by given array $rowdata and calls setSetting method foreach available setting in $this->availableSettings. More... | |
| setSetting (string $name, $value) | |
| Sets given name and value as setting into $this->settings array. More... | |
| getDescription () | |
| getSetting (string $name) | |
| save () | |
| saveSettings (array $settings) | |
| addHistoryEntry ($message) | |
| connectUser (ilChatroomUser $user) | |
| getConnectedUsers (bool $only_data=true) | |
| disconnectUser (int $user_id) | |
| disconnectUsers (array $userIds) | |
| getSettings () | |
| isSubscribed (int $chat_userid) | |
| getHistory (?ilDateTime $from=null, ?ilDateTime $to=null, ?int $restricted_session_userid=null, bool $respect_target=true) | |
| getRoomId () | |
| banUser (int $user_id, int $actor_id, string $comment='') | |
| unbanUser ($user_id) | |
| Deletes entry from banTable matching roomId and given $user_id and returns the number of affected rows. More... | |
| isUserBanned (int $user_id) | |
| getBannedUsers () | |
| getLastSession (ilChatroomUser $user) | |
| getSessions (ilChatroomUser $user) | |
| getChatURL (ilChatroomObjectGUI $gui) | |
| getTitle () | |
| countActiveUsers () | |
| getAccessibleRoomIdByTitleMap (int $user_id) | |
| Fetches and returns a Array<Integer, String> of all accessible repository object chats in the main tree. More... | |
| getRefIdByRoomId (int $room_id) | |
| getLastMessages (int $number, ilChatroomUser $chatuser) | |
| clearMessages () | |
Static Public Member Functions | |
| static | checkUserPermissions ($permissions, int $ref_id, bool $send_info=true) |
| Checks user permissions by given array and ref_id. More... | |
| static | checkPermissionsOfUser (int $usr_id, $permissions, int $ref_id) |
| Checks user permissions in question for a given user id in relation to a given ref_id. More... | |
| static | byObjectId (int $object_id) |
| static | byRoomId (int $room_id, bool $initObject=false) |
Data Fields | |
| const | ROOM_INVITATION = 'invitation_to_room' |
Static Protected Member Functions | |
| static | checkPermissions (int $usr_id, int $ref_id, array $permissions) |
Private Member Functions | |
| phpTypeToMDBType (string $type) | |
Private Attributes | |
| array | $settings = [] |
| array | $availableSettings |
| int | $roomId = 0 |
| ilObjChatroom | $object = null |
Static Private Attributes | |
| static string | $settingsTable = 'chatroom_settings' |
| static string | $historyTable = 'chatroom_history' |
| static string | $userTable = 'chatroom_users' |
| static string | $sessionTable = 'chatroom_sessions' |
| static string | $banTable = 'chatroom_bans' |
| ilChatroom::addHistoryEntry | ( | $message | ) |
| string | array | stdClass | $message |
Definition at line 266 of file class.ilChatroom.php.
References $DIC, $id, $timestamp, ILIAS\Repository\int(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Here is the call graph for this function:| ilChatroom::banUser | ( | int | $user_id, |
| int | $actor_id, | ||
| string | $comment = '' |
||
| ) |
Definition at line 474 of file class.ilChatroom.php.
References $comment, $DIC, $user_id, ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
|
static |
Definition at line 129 of file class.ilChatroom.php.
References $DIC, and ilDBConstants\T_INTEGER.
Referenced by ilChatroomXMLWriter\__construct(), ilChatroomXMLParser\__construct(), ilChatroomBanGUI\active(), ilObjChatroomGUI\afterImport(), ilObjChatroom\cloneObject(), ilChatroomBanGUI\delete(), ilChatroomViewGUI\executeDefault(), ilChatroomSettingsGUI\general(), ilObjChatroomListGUI\getProperties(), ilChatroomGUIHandler\getRoomByObjectId(), ilChatroomTabGUIFactory\getTabsForCommand(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomViewGUI\joinWithCustomName(), ilChatroomKickGUI\main(), ilChatroomSettingsGUI\saveGeneral(), ilChatroomBanGUI\show(), and ilChatroomViewGUI\toggleAutoMessageDisplayState().
Here is the caller graph for this function:
|
static |
Definition at line 172 of file class.ilChatroom.php.
References $DIC, ilObjectFactory\getInstanceByObjId(), and ilDBConstants\T_INTEGER.
Referenced by ilContactGUI\inviteToChat(), and ilContactGUI\submitInvitation().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprotected |
| string[] | $permissions |
Definition at line 100 of file class.ilChatroom.php.
References $DIC, $ref_id, ilObjChatroom\_getPublicRefId(), ilObjectAccess\_isOffline(), and ilObject\_lookupObjId().
Referenced by checkPermissionsOfUser(), and checkUserPermissions().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Checks user permissions in question for a given user id in relation to a given ref_id.
| string | string[] | $permissions |
Definition at line 88 of file class.ilChatroom.php.
References $ref_id, and checkPermissions().
Referenced by ilObjChatroomGUI\executeCommand(), ilContactGUI\submitInvitation(), and ilChatroomViewGUI\userEntry().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Checks user permissions by given array and ref_id.
| string | string[] | $permissions |
Definition at line 64 of file class.ilChatroom.php.
References $DIC, $ref_id, and checkPermissions().
Referenced by ilObjChatroomAccess\_checkGoto(), ilObjChatroomGUI\_goto(), ilChatroomTabGUIFactory\buildTabs(), ilChatroomSettingsGUI\general(), ilChatroomGUIHandler\hasPermission(), ilObjChatroomGUI\infoScreen(), ilChatroomGUIHandler\redirectIfNoPermission(), ilChatroomSettingsGUI\saveGeneral(), and ilChatroomViewGUI\showRoom().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroom::clearMessages | ( | ) |
Definition at line 818 of file class.ilChatroom.php.
References $DIC, and ilDBConstants\T_INTEGER.
| ilChatroom::connectUser | ( | ilChatroomUser | $user | ) |
Definition at line 289 of file class.ilChatroom.php.
References $DIC, $roomId, ilChatroomUser\getUserId(), ilChatroomUser\getUsername(), ilChatroomUser\isProfilePictureVisible(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Referenced by ilChatroomViewGUI\showRoom().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroom::countActiveUsers | ( | ) |
Definition at line 674 of file class.ilChatroom.php.
References $DIC, $res, and ilDBConstants\T_INTEGER.
| ilChatroom::disconnectUser | ( | int | $user_id | ) |
Definition at line 341 of file class.ilChatroom.php.
References disconnectUsers().
Here is the call graph for this function:| ilChatroom::disconnectUsers | ( | array | $userIds | ) |
| int[] | $userIds |
Definition at line 349 of file class.ilChatroom.php.
References $DIC, $id, $res, $roomId, getSetting(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Referenced by disconnectUser().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroom::getAccessibleRoomIdByTitleMap | ( | int | $user_id | ) |
Fetches and returns a Array<Integer, String> of all accessible repository object chats in the main tree.
Definition at line 694 of file class.ilChatroom.php.
References $DIC, $res, $user_id, ILIAS\Repository\int(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Here is the call graph for this function:| ilChatroom::getBannedUsers | ( | ) |
Definition at line 525 of file class.ilChatroom.php.
References $DIC, $res, ILIAS\Repository\int(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:| ilChatroom::getChatURL | ( | ilChatroomObjectGUI | $gui | ) |
Definition at line 660 of file class.ilChatroom.php.
References ilLink\_getStaticLink(), and ilObjectGUI\getObject().
Here is the call graph for this function:| ilChatroom::getConnectedUsers | ( | bool | $only_data = true | ) |
Definition at line 324 of file class.ilChatroom.php.
References $DIC, $roomId, and ilDBConstants\T_INTEGER.
Referenced by ilChatroomViewGUI\showRoom().
Here is the caller graph for this function:| ilChatroom::getDescription | ( | ) |
Definition at line 197 of file class.ilChatroom.php.
References ilObjectFactory\getInstanceByObjId(), and getSetting().
Here is the call graph for this function:| ilChatroom::getHistory | ( | ?ilDateTime | $from = null, |
| ?ilDateTime | $to = null, |
||
| ?int | $restricted_session_userid = null, |
||
| bool | $respect_target = true |
||
| ) |
Definition at line 406 of file class.ilChatroom.php.
| ilChatroom::getLastMessages | ( | int | $number, |
| ilChatroomUser | $chatuser | ||
| ) |
Definition at line 753 of file class.ilChatroom.php.
References Vendor\Package\$a, Vendor\Package\$b, $DIC, $results, ilChatroomUser\getUserId(), ILIAS\Repository\int(), and ilDBConstants\T_INTEGER.
Referenced by ilChatroomViewGUI\showRoom().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroom::getLastSession | ( | ilChatroomUser | $user | ) |
Definition at line 555 of file class.ilChatroom.php.
References $DIC, $res, ilChatroomUser\getUserId(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:| ilChatroom::getRefIdByRoomId | ( | int | $room_id | ) |
Definition at line 726 of file class.ilChatroom.php.
References $DIC, $res, and ilDBConstants\T_INTEGER.
| ilChatroom::getRoomId | ( | ) |
Definition at line 469 of file class.ilChatroom.php.
Referenced by ilChatroomViewGUI\showRoom().
Here is the caller graph for this function:| ilChatroom::getSessions | ( | ilChatroomUser | $user | ) |
Definition at line 573 of file class.ilChatroom.php.
References $DIC, $res, and ilDBConstants\T_INTEGER.
| ilChatroom::getSetting | ( | string | $name | ) |
Definition at line 206 of file class.ilChatroom.php.
References ILIAS\Repository\settings().
Referenced by disconnectUsers(), getDescription(), and ilChatroomViewGUI\showRoom().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroom::getSettings | ( | ) |
Definition at line 387 of file class.ilChatroom.php.
References $settings.
Referenced by ilChatroomViewGUI\readOnlyChatWindow(), and ilChatroomViewGUI\showRoom().
Here is the caller graph for this function:| ilChatroom::getTitle | ( | ) |
Definition at line 665 of file class.ilChatroom.php.
References ilObjectFactory\getInstanceByObjId().
Here is the call graph for this function:| ilChatroom::initialize | ( | array | $rowdata | ) |
Sets $this->roomId by given array $rowdata and calls setSetting method foreach available setting in $this->availableSettings.
Definition at line 151 of file class.ilChatroom.php.
References ILIAS\Repository\int(), and setSetting().
Here is the call graph for this function:| ilChatroom::isSubscribed | ( | int | $chat_userid | ) |
Definition at line 392 of file class.ilChatroom.php.
References $DIC, $res, $roomId, ILIAS\Repository\int(), and ilDBConstants\T_INTEGER.
Referenced by ilChatroomViewGUI\showRoom().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroom::isUserBanned | ( | int | $user_id | ) |
Definition at line 512 of file class.ilChatroom.php.
References $DIC, $res, $user_id, and ilDBConstants\T_INTEGER.
Referenced by ilChatroomViewGUI\showRoom().
Here is the caller graph for this function:
|
private |
Definition at line 254 of file class.ilChatroom.php.
References ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Referenced by saveSettings().
Here is the caller graph for this function:| ilChatroom::save | ( | ) |
Definition at line 211 of file class.ilChatroom.php.
References saveSettings(), and ILIAS\Repository\settings().
Here is the call graph for this function:| ilChatroom::saveSettings | ( | array | $settings | ) |
Definition at line 216 of file class.ilChatroom.php.
References $DIC, $roomId, $settings, phpTypeToMDBType(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Referenced by save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroom::setSetting | ( | string | $name, |
| $value | |||
| ) |
Sets given name and value as setting into $this->settings array.
| mixed | $value |
Definition at line 167 of file class.ilChatroom.php.
References ILIAS\Repository\settings().
Referenced by initialize().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroom::unbanUser | ( | $user_id | ) |
Deletes entry from banTable matching roomId and given $user_id and returns the number of affected rows.
| int | int[] | $user_id |
Definition at line 497 of file class.ilChatroom.php.
References $DIC, $user_id, and ilDBConstants\T_INTEGER.
|
private |
Definition at line 48 of file class.ilChatroom.php.
|
staticprivate |
Definition at line 40 of file class.ilChatroom.php.
|
staticprivate |
Definition at line 37 of file class.ilChatroom.php.
|
private |
Definition at line 58 of file class.ilChatroom.php.
|
private |
Definition at line 57 of file class.ilChatroom.php.
Referenced by connectUser(), disconnectUsers(), getConnectedUsers(), isSubscribed(), and saveSettings().
|
staticprivate |
Definition at line 39 of file class.ilChatroom.php.
|
private |
Definition at line 41 of file class.ilChatroom.php.
Referenced by getSettings(), and saveSettings().
|
staticprivate |
Definition at line 36 of file class.ilChatroom.php.
|
staticprivate |
Definition at line 38 of file class.ilChatroom.php.
| const ilChatroom::ROOM_INVITATION = 'invitation_to_room' |
Definition at line 35 of file class.ilChatroom.php.