4 require_once
'Modules/Chatroom/classes/class.ilChatroom.php';
5 require_once
'Modules/Chatroom/classes/class.ilChatroomUser.php';
41 $subRoomId = (int) $_REQUEST[
'sub'];
48 $room->inviteUserToPrivateRoom($invited_id, $subRoomId);
51 $connector = $this->gui->getConnector();
52 $response = $connector->sendInviteToPrivateRoom($room->getRoomId(), $subRoomId, $chat_user->getUserId(), $invited_id);
54 $room->sendInvitationNotification($this->gui, $chat_user, $invited_id, $subRoomId);
72 require_once
'Services/User/classes/class.ilUserAutoComplete.php';
74 $auto->setUser($this->ilUser);
76 if ($this->ilUser->isAnonymous()) {
80 if (($_REQUEST[
'fetchall'])) {
83 $auto->setMoreLinkAvailable(
true);
84 $auto->setSearchFields(array(
'firstname',
'lastname'));
85 $auto->setResultField(
'login');
86 $auto->enableFieldSearchableCheck(
true);
87 echo $auto->getList($_REQUEST[
'q']);
Class ilChatroomInviteUsersToPrivateRoomGUI.
redirectIfNoPermission($permission)
Checks for requested permissions and redirects if the permission check failed.
const PRIVACY_MODE_RESPECT_USER_SETTING
sendResponse($response)
Sends a json encoded response and exits the php process.
exitIfNoRoomExists($room)
Checks if a ilChatroom exists.
static _lookupId($a_user_str)
Lookup id by login.
Auto completion class for user lists.
Class ilChatroomGUIHandler.
exitIfNoRoomPermission($room, $subRoom, $chat_user)
Check if user can moderate a chatroom.
static byObjectId($object_id)
Returns ilChatroom object by given $object_id.