19 declare(strict_types=1);
63 $this->ilUser = $DIC->user();
64 $this->
ilCtrl = $DIC->ctrl();
65 $this->ilLng = $DIC->language();
66 $this->rbacsystem = $DIC->rbac()->system();
67 $this->mainTpl = $DIC->ui()->mainTemplate();
68 $this->
upload = $DIC->upload();
69 $this->webDirectory = $DIC->filesystem()->web();
70 $this->obj_service = $DIC->object();
71 $this->
ilias = $DIC[
'ilias'];
72 $this->
tabs = $DIC->tabs();
74 $this->tree = $DIC[
'tree'];
75 $this->uiFactory = $DIC->ui()->factory();
76 $this->uiRenderer = $DIC->ui()->renderer();
77 $this->
http = $DIC->http();
87 if ($this->
http->wrapper()->query()->has($key)) {
88 return $this->
http->wrapper()->query()->retrieve($key, $trafo);
91 if ($this->
http->wrapper()->post()->has($key)) {
92 return $this->
http->wrapper()->post()->retrieve($key, $trafo);
100 if ($this->
http->wrapper()->query()->has($key)) {
104 return $this->
http->wrapper()->post()->has($key);
109 $this->ilLng->loadLanguageModule(
'chatroom');
111 if (is_callable([$this, $method])) {
119 abstract public function executeDefault(
string $requestedMethod): void;
129 $this->
ilCtrl->redirectByClass(ilRepositoryGUI::class);
159 if (
null === $room) {
162 'reason' =>
'unknown room',
180 $this->
http->saveResponse(
181 $this->
http->response()
182 ->withHeader(ResponseHeader::CONTENT_TYPE, $type)
183 ->withBody(Streams::ofString($content))
185 $this->
http->sendResponse();
186 $this->
http->close();
static checkUserPermissions($permissions, int $ref_id, bool $send_info=true)
Checks user permissions by given array and ref_id.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
redirectIfNoPermission($permission)
Checks for requested permissions and redirects if the permission check failed.
Interface Observer Contains several chained tasks and infos about them.
getRequestValue(string $key, Transformation $trafo, $default=null)
exitIfNoRoomExists(?ilChatroom $room)
Checks if a ilChatroom exists.
ilNavigationHistory $navigationHistory
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
sendResponse(string $content, string $type)
Sends a response and exits the php process.
executeDefault(string $requestedMethod)
hasPermission(string $permission)
static http()
Fetches the global http state from ILIAS.
hasRequestValue(string $key)
Class ilChatroomGUIHandler.
Class ilObjForumAdministration.
isSuccessful($response)
Checks for success param in an json decoded response.
sendJSONResponse($response)
Sends a json encoded response and exits the php process.
Last visited history for repository items.
ilGlobalTemplateInterface $mainTpl
__construct(Container $dic, ilPlugin $plugin)
static byObjectId(int $object_id)
getRoomByObjectId(int $objectId)
ilObjectService $obj_service