|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Class ilChatroomUser. More...
Collaboration diagram for ilChatroomUser:Public Member Functions | |
| __construct (ilObjUser $user, ilChatroom $chatroom) | |
| Constructor. More... | |
| getUserId () | |
| Returns Ilias User ID. More... | |
| setUsername ($username) | |
| Sets and stores given username in SESSION. More... | |
| getUsername () | |
| Returns username from Object or SESSION. More... | |
| getChatNameSuggestions () | |
| Returns an array of chat-name suggestions. More... | |
| buildAnonymousName () | |
| Returns an anonymous username containing a random number. More... | |
| buildLogin () | |
| Returns user login. More... | |
| buildFullname () | |
| Returns users first & lastname. More... | |
| buildShortname () | |
| Returns first letter of users firstname, followed by dot lastname. More... | |
Private Attributes | |
| $user | |
| $username | |
| $room | |
| ilChatroomUser::__construct | ( | ilObjUser | $user, |
| ilChatroom | $chatroom | ||
| ) |
Constructor.
Requires ilObjUser and sets $this->user and $this->room using given $user and $chatroom.
| ilObjUser | $user | |
| ilChatroom | $chatroom |
Definition at line 39 of file class.ilChatroomUser.php.
References $user.
| ilChatroomUser::buildAnonymousName | ( | ) |
Returns an anonymous username containing a random number.
Definition at line 138 of file class.ilChatroomUser.php.
Referenced by getChatNameSuggestions().
Here is the caller graph for this function:| ilChatroomUser::buildFullname | ( | ) |
Returns users first & lastname.
Definition at line 162 of file class.ilChatroomUser.php.
Referenced by getChatNameSuggestions().
Here is the caller graph for this function:| ilChatroomUser::buildLogin | ( | ) |
Returns user login.
Definition at line 152 of file class.ilChatroomUser.php.
Referenced by getChatNameSuggestions().
Here is the caller graph for this function:| ilChatroomUser::buildShortname | ( | ) |
Returns first letter of users firstname, followed by dot lastname.
Definition at line 172 of file class.ilChatroomUser.php.
Referenced by getChatNameSuggestions().
Here is the caller graph for this function:| ilChatroomUser::getChatNameSuggestions | ( | ) |
Returns an array of chat-name suggestions.
Definition at line 115 of file class.ilChatroomUser.php.
References $options, buildAnonymousName(), buildFullname(), buildLogin(), and buildShortname().
Here is the call 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.
| ilObjUser | $user |
Definition at line 54 of file class.ilChatroomUser.php.
References $_SESSION.
Referenced by ilChatroom\addPrivateRoom(), ilChatroomPrivateRoomTask\buildMessage(), ilChatroomServerConnector\createPrivateRoom(), ilChatroom\getLastSession(), and ilObjChatroom\getPersonalInformation().
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 94 of file class.ilChatroomUser.php.
References $_SESSION, and $username.
Referenced by ilObjChatroom\getPersonalInformation().
Here is the caller graph for this function:| ilChatroomUser::setUsername | ( | $username | ) |
Sets and stores given username in SESSION.
| string | $username |
Definition at line 82 of file class.ilChatroomUser.php.
|
private |
Definition at line 28 of file class.ilChatroomUser.php.
|
private |
Definition at line 18 of file class.ilChatroomUser.php.
Referenced by __construct().
|
private |
Definition at line 23 of file class.ilChatroomUser.php.
Referenced by getUsername(), and setUsername().