4 require_once
'Modules/Chatroom/classes/class.ilChatroom.php';
5 require_once
'Modules/Chatroom/classes/class.ilChatroomUser.php';
58 private function inviteById($invited_id)
68 $ilCtrl->setParameterByClass(
'ilrepositorygui',
'ref_id', ROOT_FOLDER_ID);
69 $ilCtrl->redirectByClass(
'ilrepositorygui',
'');
75 $user_id = $chat_user->getUserId();
79 $response = json_encode(array(
81 'reason' =>
'unkown room' 83 echo json_encode($response);
88 $response = json_encode(array(
90 'reason' =>
'not owner of private room' 92 echo json_encode($response);
96 $connector = $this->gui->getConnector();
98 $result = $connector->inviteToPrivateRoom($room,
$_REQUEST[
'sub'], $ilUser, $invited_id);
100 $room->sendInvitationNotification($this->gui, $chat_user, $invited_id, (
int)
$_REQUEST[
'sub']);
106 public function getUserList()
113 require_once
'Services/User/classes/class.ilUserAutoComplete.php';
115 $auto->setUser($ilUser);
117 if($ilUser->isAnonymous())
126 $auto->setMoreLinkAvailable(
true);
127 $auto->setSearchFields(array(
'firstname',
'lastname'));
128 $auto->setResultField(
'login');
129 $auto->enableFieldSearchableCheck(
true);
executeDefault($method)
Prepares and posts message fetched from $_REQUEST['message'] to recipients fetched from $_REQUEST['re...
const PRIVACY_MODE_RESPECT_USER_SETTING
static _lookupId($a_user_str)
lookup id by login
__construct(ilChatroomObjectGUI $gui)
Auto completion class for user lists.
static checkUserPermissions($permissions, $ref_id, $send_info=true)
Checks user permissions by given array and ref_id.
static byObjectId($object_id)
Returns ilChatroom object by given $object_id.
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
Class ilChatroomInviteUsersToPrivateRoomTask.