|
ILIAS
release_8 Revision v8.24
|
Class ilChatroomUser. More...
Collaboration diagram for ilChatroomUser:Public Member Functions | |
| __construct (ilObjUser $user, ilChatroom $chatroom) | |
| enabledBroadcastTyping () | |
| getUserId () | |
| Returns Ilias User ID. More... | |
| getUsername () | |
| Returns username from Object or SESSION. More... | |
| setUsername (string $username) | |
| Sets and stores given username in SESSION. More... | |
| getChatNameSuggestions () | |
| Returns an array of chat-name suggestions. More... | |
| buildAnonymousName () | |
| buildFullname () | |
| buildShortname () | |
| Returns first letter of users firstname, followed by dot lastname. More... | |
| buildLogin () | |
| buildUniqueUsername (string $username) | |
Static Public Member Functions | |
| static | getUserInformation (array $usrIds, ?int $roomId=null) |
Private Attributes | |
| ilObjUser | $user |
| ilChatroom | $room |
| string | $username = '' |
| ilChatroomUser::__construct | ( | ilObjUser | $user, |
| ilChatroom | $chatroom | ||
| ) |
Definition at line 33 of file class.ilChatroomUser.php.
References $user, and ILIAS\Repository\user().
Here is the call graph for this function:| ilChatroomUser::buildAnonymousName | ( | ) |
Definition at line 123 of file class.ilChatroomUser.php.
Referenced by getChatNameSuggestions().
Here is the caller graph for this function:| ilChatroomUser::buildFullname | ( | ) |
Definition at line 132 of file class.ilChatroomUser.php.
References ILIAS\Repository\user().
Referenced by getChatNameSuggestions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroomUser::buildLogin | ( | ) |
Definition at line 153 of file class.ilChatroomUser.php.
References ILIAS\Repository\user().
Referenced by getChatNameSuggestions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroomUser::buildShortname | ( | ) |
Returns first letter of users firstname, followed by dot lastname.
Definition at line 146 of file class.ilChatroomUser.php.
References ILIAS\Repository\user().
Referenced by getChatNameSuggestions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroomUser::buildUniqueUsername | ( | string | $username | ) |
Definition at line 158 of file class.ilChatroomUser.php.
| ilChatroomUser::enabledBroadcastTyping | ( | ) |
Definition at line 39 of file class.ilChatroomUser.php.
References ILIAS\Repository\user(), and ilUtil\yn2tf().
Referenced by ilChatroomViewGUI\showRoom().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroomUser::getChatNameSuggestions | ( | ) |
Returns an array of chat-name suggestions.
Definition at line 108 of file class.ilChatroomUser.php.
References buildAnonymousName(), buildFullname(), buildLogin(), buildShortname(), and ILIAS\Repository\user().
Referenced by ilChatroomViewGUI\showNameSelection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroomUser::getUserId | ( | ) |
Returns Ilias User ID.
If user is anonymous, a random negative User ID is created, stored in SESSION, and returned.
Definition at line 49 of file class.ilChatroomUser.php.
References $session, ilSession\get(), ilSession\set(), and ILIAS\Repository\user().
Referenced by ilChatroom\addPrivateRoom(), ilChatroom\connectUser(), ilChatroomPrivateRoomGUI\exitIfEnterRoomIsNotAllowed(), ilChatroomGUIHandler\exitIfNoRoomModeratePermission(), ilChatroomPrivateRoomGUI\exitIfNoRoomSubscription(), ilChatroom\getLastMessages(), ilChatroom\getLastSession(), and ilChatroomViewGUI\showRoom().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| int[] | $usrIds | |
| int | null | $roomId |
Definition at line 191 of file class.ilChatroomUser.php.
| ilChatroomUser::getUsername | ( | ) |
Returns username from Object or SESSION.
If no Username is set, the login name will be returned.
Definition at line 73 of file class.ilChatroomUser.php.
References $session, $username, ilSession\get(), and ILIAS\Repository\user().
Referenced by ilChatroom\connectUser(), and ilChatroomViewGUI\showRoom().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroomUser::setUsername | ( | string | $username | ) |
Sets and stores given username in SESSION.
| string | $username |
Definition at line 95 of file class.ilChatroomUser.php.
References $session, $username, ilSession\get(), and ilSession\set().
Here is the call graph for this function:
|
private |
Definition at line 30 of file class.ilChatroomUser.php.
|
private |
Definition at line 29 of file class.ilChatroomUser.php.
Referenced by __construct().
|
private |
Definition at line 31 of file class.ilChatroomUser.php.
Referenced by buildUniqueUsername(), getUsername(), and setUsername().