40 require_once
'Modules/Chatroom/classes/class.ilChatroom.php';
41 require_once
'Modules/Chatroom/classes/class.ilChatroomUser.php';
53 $scope = $room->getRoomId();
62 'message' => $message,
65 $query = http_build_query( $params );
66 $connector = $this->gui->getConnector();
67 $response = $connector->post( $scope,
$query );
68 $responseObject = json_decode( $response );
70 $room->clearMessages($_REQUEST[
'sub']);
74 $response = json_encode( array(
76 'reason' =>
'unkown room'
94 $data =
new stdClass();
96 $data->user = $this->gui->object->getPersonalInformation( $chat_user );
97 $data->timestamp = date(
'c' );
98 $data->type =
'clear';
99 $data->sub = $messageString;