| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
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... | |
| isProfilePictureVisible () | |
| setProfilePictureVisible (bool $show_it) | |
| 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 = '' | 
| bool | $profile_picture_visible = null | 
| ilChatroomUser::__construct | ( | private readonly ilObjUser | $user, | 
| private readonly ilChatroom | $room | ||
| ) | 
Definition at line 32 of file class.ilChatroomUser.php.
| ilChatroomUser::buildAnonymousName | ( | ) | 
Definition at line 132 of file class.ilChatroomUser.php.
Referenced by getChatNameSuggestions().
 Here is the caller graph for this function:| ilChatroomUser::buildFullname | ( | ) | 
Definition at line 141 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 161 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 154 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 36 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 117 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 45 of file class.ilChatroomUser.php.
References $user_id, 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 | 
| ilChatroomUser::getUsername | ( | ) | 
Returns username from Object or SESSION.
If no Username is set, the login name will be returned.
Definition at line 68 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::isProfilePictureVisible | ( | ) | 
Definition at line 98 of file class.ilChatroomUser.php.
References $profile_picture_visible, and ilSession\get().
Referenced by ilChatroom\connectUser(), and ilChatroomViewGUI\showRoom().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilChatroomUser::setProfilePictureVisible | ( | bool | $show_it | ) | 
Definition at line 106 of file class.ilChatroomUser.php.
References ilSession\get(), and ilSession\set().
 Here is the call graph for this function:| ilChatroomUser::setUsername | ( | string | $username | ) | 
Sets and stores given username in SESSION.
Definition at line 89 of file class.ilChatroomUser.php.
References $username, ilSession\get(), and ilSession\set().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 30 of file class.ilChatroomUser.php.
Referenced by isProfilePictureVisible().
      
  | 
  private | 
Definition at line 29 of file class.ilChatroomUser.php.
Referenced by buildUniqueUsername(), getUsername(), and setUsername().