|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
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 () | |
| saveFileUploadToDb (int $user_id, string $filename, string $type) | |
| 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 |
| array 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' |
| static string | $uploadTable = 'chatroom_uploads' |
| ilChatroom::addHistoryEntry | ( | $message | ) |
| string | array | stdClass | $message |
Definition at line 268 of file class.ilChatroom.php.
References $DIC, $id, $message, $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 493 of file class.ilChatroom.php.
References $comment, $DIC, ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
|
static |
Definition at line 131 of file class.ilChatroom.php.
References $DIC, and ilDBConstants\T_INTEGER.
Referenced by ilChatroomXMLWriter\__construct(), ilChatroomXMLParser\__construct(), ilChatroomBanGUI\active(), ilObjChatroomGUI\afterImport(), ilChatroomHistoryGUI\byDay(), ilChatroomHistoryGUI\bySession(), ilObjChatroom\cloneObject(), ilChatroomBanGUI\delete(), ilChatroomViewGUI\executeDefault(), ilChatroomSettingsGUI\general(), ilObjChatroomListGUI\getProperties(), ilChatroomGUIHandler\getRoomByObjectId(), ilChatroomTabGUIFactory\getTabsForCommand(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomViewGUI\joinWithCustomName(), ilChatroomViewGUI\lostConnection(), ilChatroomKickGUI\main(), ilChatroomCreateGUI\save(), ilChatroomSettingsGUI\saveGeneral(), ilChatroomBanGUI\show(), and ilChatroomViewGUI\toggleAutoMessageDisplayState().
Here is the caller graph for this function:
|
static |
Definition at line 174 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 101 of file class.ilChatroom.php.
References $DIC, ilObjChatroom\_getPublicRefId(), ilObjectAccess\_isOffline(), and ilObject\_lookupObjId().
Here is the call 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 89 of file class.ilChatroom.php.
Referenced by ilObjChatroomGUI\executeCommand(), and ilContactGUI\submitInvitation().
Here is the caller graph for this function:
|
static |
Checks user permissions by given array and ref_id.
| string|string[] | $permissions |
Definition at line 65 of file class.ilChatroom.php.
Referenced by ilObjChatroomAccess\_checkGoto(), ilObjChatroomGUI\_goto(), ilChatroomTabGUIFactory\buildTabs(), ilChatroomInfoGUI\executeDefault(), ilChatroomSettingsGUI\general(), ilChatroomGUIHandler\hasPermission(), ilChatroomGUIHandler\redirectIfNoPermission(), ilChatroomAdminViewGUI\saveClientSettings(), and ilChatroomViewGUI\showRoom().
Here is the caller graph for this function:| ilChatroom::clearMessages | ( | ) |
| ilChatroom::connectUser | ( | ilChatroomUser | $user | ) |
Definition at line 291 of file class.ilChatroom.php.
References $DIC, $roomId, ilChatroomUser\getUserId(), ilChatroomUser\getUsername(), 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 693 of file class.ilChatroom.php.
References $DIC, $res, $roomId, and ilDBConstants\T_INTEGER.
| ilChatroom::disconnectUser | ( | int | $user_id | ) |
Definition at line 342 of file class.ilChatroom.php.
References disconnectUsers().
Here is the call graph for this function:| ilChatroom::disconnectUsers | ( | array | $userIds | ) |
| int[] | $userIds |
Definition at line 350 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 713 of file class.ilChatroom.php.
References $DIC, $res, ILIAS\Repository\int(), ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Here is the call graph for this function:| ilChatroom::getBannedUsers | ( | ) |
Definition at line 544 of file class.ilChatroom.php.
References $DIC, $res, getRoomId(), ILIAS\Repository\int(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:| ilChatroom::getChatURL | ( | ilChatroomObjectGUI | $gui | ) |
Definition at line 679 of file class.ilChatroom.php.
References ilLink\_getStaticLink(), and ilObjectGUI\getObject().
Referenced by getSessions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroom::getConnectedUsers | ( | bool | $only_data = true | ) |
Definition at line 325 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 199 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 407 of file class.ilChatroom.php.
References $DIC, $message, getRoomId(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:| ilChatroom::getLastMessages | ( | int | $number, |
| ilChatroomUser | $chatuser | ||
| ) |
Definition at line 772 of file class.ilChatroom.php.
References Vendor\Package\$a, Vendor\Package\$b, $DIC, $results, $roomId, ilChatroomUser\getUserId(), ILIAS\Repository\int(), 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::getLastSession | ( | ilChatroomUser | $user | ) |
Definition at line 574 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 745 of file class.ilChatroom.php.
References $DIC, $res, and ilDBConstants\T_INTEGER.
Referenced by getSessions().
Here is the caller graph for this function:| ilChatroom::getRoomId | ( | ) |
Definition at line 470 of file class.ilChatroom.php.
References $roomId.
Referenced by getBannedUsers(), getHistory(), getSessions(), isUserBanned(), ilChatroomViewGUI\showRoom(), and unbanUser().
Here is the caller graph for this function:| ilChatroom::getSessions | ( | ilChatroomUser | $user | ) |
Definition at line 592 of file class.ilChatroom.php.
References $DIC, $res, ilLanguageFactory\_getLanguageOfUser(), ANONYMOUS_USER_ID, getChatURL(), ilObjectFactory\getInstanceByObjId(), getRefIdByRoomId(), getRoomId(), ilMail\getSalutation(), getTitle(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:| ilChatroom::getSetting | ( | string | $name | ) |
Definition at line 208 of file class.ilChatroom.php.
References ILIAS\Repository\settings().
Referenced by disconnectUsers(), getDescription(), getTitle(), and ilChatroomViewGUI\showRoom().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroom::getSettings | ( | ) |
| ilChatroom::getTitle | ( | ) |
Definition at line 684 of file class.ilChatroom.php.
References ilObjectFactory\getInstanceByObjId(), and getSetting().
Referenced by getSessions().
Here is the call graph for this function:
Here is the caller 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 153 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 393 of file class.ilChatroom.php.
References $DIC, $res, $roomId, and ilDBConstants\T_INTEGER.
Referenced by ilChatroomViewGUI\showRoom().
Here is the caller graph for this function:| ilChatroom::isUserBanned | ( | int | $user_id | ) |
Definition at line 531 of file class.ilChatroom.php.
References $DIC, $res, getRoomId(), and ilDBConstants\T_INTEGER.
Referenced by ilChatroomViewGUI\showRoom().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 256 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 213 of file class.ilChatroom.php.
References saveSettings(), and ILIAS\Repository\settings().
Here is the call graph for this function:| ilChatroom::saveFileUploadToDb | ( | int | $user_id, |
| string | $filename, | ||
| string | $type | ||
| ) |
Definition at line 475 of file class.ilChatroom.php.
References $DIC, ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
| ilChatroom::saveSettings | ( | array | $settings | ) |
Definition at line 218 of file class.ilChatroom.php.
References $DIC, $roomId, 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 169 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 516 of file class.ilChatroom.php.
References $DIC, getRoomId(), and ilDBConstants\T_INTEGER.
Here is the call graph for this function:
|
private |
Definition at line 49 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 59 of file class.ilChatroom.php.
|
private |
Definition at line 58 of file class.ilChatroom.php.
Referenced by connectUser(), countActiveUsers(), disconnectUsers(), getConnectedUsers(), getLastMessages(), getRoomId(), isSubscribed(), and saveSettings().
|
staticprivate |
Definition at line 39 of file class.ilChatroom.php.
|
private |
Definition at line 42 of file class.ilChatroom.php.
Referenced by getSettings().
|
staticprivate |
Definition at line 36 of file class.ilChatroom.php.
|
staticprivate |
Definition at line 41 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.