40 require_once
'Modules/Chatroom/classes/class.ilChatroom.php';
41 require_once
'Modules/Chatroom/classes/class.ilChatroomUser.php';
45 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id", ROOT_FOLDER_ID);
46 $ilCtrl->redirectByClass(
"ilrepositorygui",
"");
54 $scope = $room->getRoomId();
63 'message' => $message,
66 $query = http_build_query( $params );
67 $connector = $this->gui->getConnector();
68 $response = $connector->post( $scope,
$query );
69 $responseObject = json_decode( $response );
71 $room->clearMessages($_REQUEST[
'sub']);
75 $response = json_encode( array(
77 'reason' =>
'unkown room'
95 $data =
new stdClass();
97 $data->user = $this->gui->object->getPersonalInformation( $chat_user );
98 $data->timestamp = date(
'c' );
99 $data->type =
'clear';
100 $data->sub = $messageString;