|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Class ilChatroomUser. More...
Collaboration diagram for ilChatroomUser:Public Member Functions | |
| __construct (private readonly ilObjUser $user, private readonly ilChatroom $room) | |
| 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 | |
| string | $username = '' |
| ilChatroomUser::__construct | ( | private readonly ilObjUser | $user, |
| private readonly ilChatroom | $room | ||
| ) |
Definition at line 31 of file class.ilChatroomUser.php.
| ilChatroomUser::buildAnonymousName | ( | ) |
Definition at line 116 of file class.ilChatroomUser.php.
Referenced by getChatNameSuggestions().
Here is the caller graph for this function:| ilChatroomUser::buildFullname | ( | ) |
Definition at line 125 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 145 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 138 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 | ) |
| ilChatroomUser::enabledBroadcastTyping | ( | ) |
Definition at line 35 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 101 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 44 of file class.ilChatroomUser.php.
References ilSession\get(), ilSession\set(), and ILIAS\Repository\user().
Referenced by ilChatroom\connectUser(), ilChatroom\getLastMessages(), ilChatroom\getLastSession(), ilObjChatroom\getPersonalInformation(), and ilChatroomViewGUI\showRoom().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| int[] | $usrIds |
Definition at line 181 of file class.ilChatroomUser.php.
Referenced by ilChatroomViewGUI\lostConnection().
Here is the caller graph for this function:| ilChatroomUser::getUsername | ( | ) |
Returns username from Object or SESSION.
If no Username is set, the login name will be returned.
Definition at line 67 of file class.ilChatroomUser.php.
References $username, ilSession\get(), and ILIAS\Repository\user().
Referenced by ilChatroom\connectUser(), ilObjChatroom\getPersonalInformation(), 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.
Definition at line 88 of file class.ilChatroomUser.php.
References $username, ilSession\get(), and ilSession\set().
Here is the call graph for this function:
|
private |
Definition at line 29 of file class.ilChatroomUser.php.
Referenced by buildUniqueUsername(), getUsername(), and setUsername().