38 protected \ILIAS\DI\UIServices
$ui;
39 protected Message\ServerRequestInterface
$request;
45 Message\ServerRequestInterface $request
55 $this->log->debug(
"Start replying...");
56 $query = $this->request->getQueryParams();
57 $post = $this->request->getParsedBody();
63 $body = json_decode($this->request->getBody()->getContents(),
true);
65 if (isset(
$query[
"component"])) {
74 $data = new \stdClass();
75 $this->log->error($e->getMessage() .
"\n" . $e->getTraceAsString());
76 $data->error = $e->getMessage();
77 if (defined(
'DEVMODE') && DEVMODE) {
78 $data->error .=
"<br><br>" . nl2br($e->getTraceAsString());
83 $this->log->debug(
"... sending response");
92 switch ($query[
"component"]) {
94 $handler =
new Page\PageQueryActionHandler($this->page_gui);
98 if ($handler === null) {
99 throw new Exception(
"Unknown Component " . ((
string) $query[
"component"]));
110 switch ($body[
"component"]) {
112 $handler =
new Paragraph\ParagraphCommandActionHandler($this->page_gui);
115 $handler =
new Page\PageCommandActionHandler($this->page_gui);
118 $handler =
new Grid\GridCommandActionHandler($this->page_gui);
121 $handler =
new Section\SectionCommandActionHandler($this->page_gui);
124 $handler =
new MediaObject\MediaObjectCommandActionHandler($this->page_gui);
127 $handler =
new Table\TableCommandActionHandler($this->page_gui);
131 if ($handler === null) {
132 throw new Exception(
"Unknown component " . ((
string) $body[
"component"]));
Query action handler interface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getLogger(string $a_component_id)
Get component logger.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getActionHandlerForQuery(array $query)
getActionHandlerForCommand(array $query, array $body)
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilPageObjectGUI $page_gui
Command action handler interface.
__construct(\ilPageObjectGUI $page_gui, \ILIAS\DI\UIServices $ui, Message\ServerRequestInterface $request)
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...
Message ServerRequestInterface $request
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...