4 require_once
'Modules/Chatroom/classes/class.ilChatroom.php';
5 require_once
'Modules/Chatroom/classes/class.ilChatroomUser.php';
31 parent::__construct($gui);
59 $subRoomId = (int)$_REQUEST[
'sub'];
67 $room->inviteUserToPrivateRoom($invited_id, $subRoomId);
70 $connector = $this->gui->getConnector();
71 $response = $connector->sendInviteToPrivateRoom($room->getRoomId(), $subRoomId, $chat_user->getUserId(), $invited_id);
73 $room->sendInvitationNotification($this->gui, $chat_user, $invited_id, $subRoomId);
91 require_once
'Services/User/classes/class.ilUserAutoComplete.php';
93 $auto->setUser($this->ilUser);
95 if($this->ilUser->isAnonymous())
100 if(($_REQUEST[
'fetchall']))
104 $auto->setMoreLinkAvailable(
true);
105 $auto->setSearchFields(
array(
'firstname',
'lastname'));
106 $auto->setResultField(
'login');
107 $auto->enableFieldSearchableCheck(
true);
108 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.
__construct(ilChatroomObjectGUI $gui)
ilChatroomInviteUsersToPrivateRoomGUI constructor.
Class ilChatroomGUIHandler.
Create styles array
The data for the language used.
exitIfNoRoomPermission($room, $subRoom, $chat_user)
Check if user can moderate a chatroom.
static byObjectId($object_id)
Returns ilChatroom object by given $object_id.