ILIAS
trunk Revision v11.0_alpha-1861-g09f3d197f78
|
Class ilChatroomUser. More...
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().
ilChatroomUser::buildFullname | ( | ) |
Definition at line 141 of file class.ilChatroomUser.php.
References ILIAS\Repository\user().
Referenced by getChatNameSuggestions().
ilChatroomUser::buildLogin | ( | ) |
Definition at line 161 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 154 of file class.ilChatroomUser.php.
References ILIAS\Repository\user().
Referenced by getChatNameSuggestions().
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().
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().
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().
|
static |
int[] | $usrIds |
Definition at line 197 of file class.ilChatroomUser.php.
References $DIC, $res, and null.
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().
ilChatroomUser::isProfilePictureVisible | ( | ) |
Definition at line 98 of file class.ilChatroomUser.php.
References $profile_picture_visible, ilSession\get(), and null.
Referenced by ilChatroom\connectUser(), and ilChatroomViewGUI\showRoom().
ilChatroomUser::setProfilePictureVisible | ( | bool | $show_it | ) |
Definition at line 106 of file class.ilChatroomUser.php.
References ilSession\get(), and ilSession\set().
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().
|
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().