19 declare(strict_types=1);
40 $room->clearMessages($subRoomId);
42 $connector = $this->gui->getConnector();
43 $response = $connector->sendClearMessages($room->getRoomId(), $subRoomId, $chat_user->getUserId());
redirectIfNoPermission($permission)
Checks for requested permissions and redirects if the permission check failed.
getRequestValue(string $key, Transformation $trafo, $default=null)
exitIfNoRoomExists(?ilChatroom $room)
Checks if a ilChatroom exists.
Class ilChatroomGUIHandler.
executeDefault(string $requestedMethod)
sendResponse($response, bool $isJson=false)
Sends a json encoded response and exits the php process.
getRoomByObjectId(int $objectId)