19declare(strict_types=1);
64 $this->ilUser =
$DIC->user();
66 $this->ilLng =
$DIC->language();
67 $this->rbacsystem =
$DIC->rbac()->system();
68 $this->mainTpl =
$DIC->ui()->mainTemplate();
69 $this->
upload = $DIC->upload();
70 $this->webDirectory =
$DIC->filesystem()->web();
71 $this->obj_service =
$DIC->object();
72 $this->
ilias = $DIC[
'ilias'];
73 $this->
tabs = $DIC->tabs();
75 $this->tree =
$DIC[
'tree'];
76 $this->uiFactory =
$DIC->ui()->factory();
77 $this->uiRenderer =
$DIC->ui()->renderer();
78 $this->
http = $DIC->http();
80 $this->file_delivery =
$DIC[
'file_delivery'];
89 if ($this->
http->wrapper()->query()->has($key)) {
90 return $this->
http->wrapper()->query()->retrieve($key, $trafo);
93 if ($this->
http->wrapper()->post()->has($key)) {
94 return $this->
http->wrapper()->post()->retrieve($key, $trafo);
102 if ($this->
http->wrapper()->query()->has($key)) {
106 return $this->
http->wrapper()->post()->has($key);
111 $this->ilLng->loadLanguageModule(
'chatroom');
113 if (is_callable([$this, $method])) {
161 if (
null === $room) {
164 'reason' =>
'unknown room',
182 $this->
http->saveResponse(
183 $this->
http->response()
184 ->withHeader(ResponseHeader::CONTENT_TYPE, $type)
185 ->withBody(Streams::ofString($content))
187 $this->
http->sendResponse();
188 $this->
http->close();
Builds a Color from either hex- or rgb values.
Stream factory which enables the user to create streams without the knowledge of the concrete class.
Class ilChatroomGUIHandler.
hasRequestValue(string $key)
ilGlobalTemplateInterface $mainTpl
ILIAS FileDelivery Services $file_delivery
redirectIfNoPermission($permission)
Checks for requested permissions and redirects if the permission check failed.
getRoomByObjectId(int $objectId)
ilObjectService $obj_service
exitIfNoRoomExists(?ilChatroom $room)
Checks if a ilChatroom exists.
executeDefault(string $requestedMethod)
sendResponse(string $content, string $type)
Sends a response and exits the php process.
ilNavigationHistory $navigationHistory
sendJSONResponse($response)
Sends a json encoded response and exits the php process.
isSuccessful($response)
Checks for success param in an json decoded response.
getRequestValue(string $key, Transformation $trafo, $default=null)
hasPermission(string $permission)
static checkUserPermissions($permissions, int $ref_id, bool $send_info=true)
Checks user permissions by given array and ref_id.
static byObjectId(int $object_id)
Class ilCtrl provides processing control methods.
redirectByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
@inheritDoc
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
Last visited history for repository items.
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
The filesystem interface provides the public interface for the Filesystem service API consumer.
Interface GlobalHttpState.
An entity that renders components to a string output.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static http()
Fetches the global http state from ILIAS.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
Class ilObjForumAdministration.