ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilPageEditorServerAdapterGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2020 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5use \Psr\Http\Message;
6use \ILIAS\COPage\Editor\Server;
7
14{
18 protected $page_gui;
19
23 protected $ui;
24
28 protected $ctrl;
29
33 protected $request;
34
38 public function __construct(
41 \ILIAS\DI\UIServices $ui,
42 Message\ServerRequestInterface $request
43 ) {
44 $this->request = $request;
45 $this->ctrl = $ctrl;
46 $this->ui = $ui;
47 $this->page_gui = $page_gui;
48 }
49
53 public function executeCommand()
54 {
56 $next_class = $ctrl->getNextClass($this);
57 $cmd = $ctrl->getCmd("invokeServer");
58
59 switch ($next_class) {
60 default:
61 if (in_array($cmd, array("invokeServer"))) {
62 $this->$cmd();
63 }
64 }
65 }
66
70 protected function invokeServer()
71 {
72 $server = new Server\Server($this->page_gui, $this->ui, $this->request);
73 $server->reply();
74 }
75}
An exception for terminatinating execution or to throw for unit testing.
Page editor json server.
This class provides processing control methods.
__construct(ilPageObjectGUI $page_gui, ilCtrl $ctrl, \ILIAS\DI\UIServices $ui, Message\ServerRequestInterface $request)
Constructor.
Class ilPageObjectGUI.
$server
Class HTTPServicesTest.
Class ChatMainBarProvider \MainMenu\Provider.
ui()
Definition: ui.php:5