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;
43 $userToKick = $_REQUEST[
'user'];
44 $subRoomId = $_REQUEST[
'sub'];
48 $connector = $this->gui->getConnector();
49 $response = $connector->sendKick($room->getRoomId(), $subRoomId, $userToKick);
53 $room->disconnectUser($userToKick);
62 $userToKick = $_REQUEST[
'user'];
63 $subRoomId = $_REQUEST[
'sub'];
67 $connector = $this->gui->getConnector();
68 $response = $connector->sendKick($room->getRoomId(), $subRoomId, $userToKick);
72 $room->disconnectUser($userToKick);
86 if (!$room->isOwnerOfPrivateRoom($this->ilUser->getId(), $_REQUEST[
'sub'])) {
93 $roomId = $room->getRoomId();
94 $subRoomId = $_REQUEST[
'sub'];
95 $userToKick = $_REQUEST[
'user'];
97 if ($room->userIsInPrivateRoom($subRoomId, $userToKick)) {
98 $connector = $this->gui->getConnector();
99 $response = $connector->sendKick($roomId, $subRoomId, $userToKick);
executeDefault($method)
Displays window box to kick a user fetched from $_REQUEST['user'].
This class provides processing control methods.
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.
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...
static checkUserPermissions($permissions, $ref_id, $send_info=true)
Checks user permissions by given array and ref_id.
redirectByClass($a_class, $a_cmd="", $a_anchor="", $a_asynch=false)
Redirect to other gui class using class name.
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.
setParameterByClass($a_class, $a_parameter, $a_value)
Same as setParameterByClass, except that a class name is passed.
static byObjectId($object_id)
Returns ilChatroom object by given $object_id.