ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Class ilChatroomUser. More...
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().
ilChatroomUser::buildAnonymousName | ( | ) |
Definition at line 123 of file class.ilChatroomUser.php.
Referenced by getChatNameSuggestions().
ilChatroomUser::buildFullname | ( | ) |
Definition at line 132 of file class.ilChatroomUser.php.
References ILIAS\Repository\user().
Referenced by getChatNameSuggestions().
ilChatroomUser::buildLogin | ( | ) |
Definition at line 153 of file class.ilChatroomUser.php.
References ILIAS\Repository\user().
Referenced by getChatNameSuggestions().
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().
ilChatroomUser::buildUniqueUsername | ( | string | $username | ) |
ilChatroomUser::enabledBroadcastTyping | ( | ) |
Definition at line 39 of file class.ilChatroomUser.php.
References ILIAS\Repository\user(), and ilUtil\yn2tf().
Referenced by ilChatroomViewGUI\showRoom().
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().
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(), ilObjChatroom\getPersonalInformation(), and ilChatroomViewGUI\showRoom().
|
static |
int[] | $usrIds | |
int | null | $roomId |
Definition at line 191 of file class.ilChatroomUser.php.
References $DIC, $query, and $res.
Referenced by ilChatroomViewGUI\lostConnection().
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(), ilObjChatroom\getPersonalInformation(), and ilChatroomViewGUI\showRoom().
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().
|
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().