3 require_once
'Modules/Chatroom/classes/class.ilChatroom.php';
4 require_once
'Modules/Chatroom/classes/class.ilChatroomUser.php';
24 $data =
new stdClass();
26 $data->user = $this->gui->object->getPersonalInformation($chat_user);
27 $data->userToKick = $messageString;
44 $userToKick = $_REQUEST[
'user'];
45 $subRoomId = $_REQUEST[
'sub'];
49 $connector = $this->gui->getConnector();
50 $response = $connector->sendKick($room->getRoomId(), $subRoomId, $userToKick);
55 $room->disconnectUser($userToKick);
64 $userToKick = $_REQUEST[
'user'];
65 $subRoomId = $_REQUEST[
'sub'];
69 $connector = $this->gui->getConnector();
70 $response = $connector->sendKick($room->getRoomId(), $subRoomId, $userToKick);
75 $room->disconnectUser($userToKick);
93 if(!$room->isOwnerOfPrivateRoom($ilUser->getId(), $_REQUEST[
'sub']))
97 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", ROOT_FOLDER_ID);
98 $ilCtrl->redirectByClass(
"ilrepositorygui",
"");
102 $roomId = $room->getRoomId();
103 $subRoomId = $_REQUEST[
'sub'];
104 $userToKick = $_REQUEST[
'user'];
106 if($room->userIsInPrivateRoom($subRoomId, $userToKick))
108 $connector = $this->gui->getConnector();
109 $response = $connector->sendKick($roomId, $subRoomId, $userToKick);
executeDefault($method)
Displays window box to kick a user fetched from $_REQUEST['user'].
redirectIfNoPermission($permission)
Checks for requested permissions and redirects if the permission check failed.
sendResponse($response)
Sends a json encoded response and exits the php process.
sub()
Kicks user from subroom into mainroom ilObjUser $ilUser.
exitIfNoRoomExists($room)
Checks if a ilChatroom exists.
buildMessage($messageString, ilChatroomUser $chat_user)
Instantiates stdClass, sets $data->user and $data->userToKick using given $messageString and $chat_us...
Class ilChatroomGUIHandler.
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
isSuccessful($response)
Checks for success param in an json decoded response.
Create styles array
The data for the language used.
static byObjectId($object_id)
Returns ilChatroom object by given $object_id.
static checkPermissionsOfUser($usr_id, $permissions, $ref_id)
Checks user permissions in question for a given user id in relation to a given ref_id.