ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPageEditorServerAdapterGUI.php
Go to the documentation of this file.
1<?php
2
19use Psr\Http\Message;
21
28{
30 protected \ILIAS\DI\UIServices $ui;
31 protected ilCtrl $ctrl;
32 protected Message\ServerRequestInterface $request;
33
34 public function __construct(
37 \ILIAS\DI\UIServices $ui,
38 Message\ServerRequestInterface $request
39 ) {
40 $this->request = $request;
41 $this->ctrl = $ctrl;
42 $this->ui = $ui;
43 $this->page_gui = $page_gui;
44 }
45
46 public function executeCommand(): void
47 {
49 $next_class = $ctrl->getNextClass($this);
50 $cmd = $ctrl->getCmd("invokeServer");
51
52 switch ($next_class) {
53 default:
54 if (in_array($cmd, array("invokeServer"))) {
55 $this->$cmd();
56 }
57 }
58 }
59
63 protected function invokeServer(): void
64 {
65 $server = new Server\Server($this->page_gui, $this->ui, $this->request);
66 $server->reply();
67 }
68}
Page editor json server.
Class ilCtrl provides processing control methods.
getNextClass($a_gui_class=null)
@inheritDoc
getCmd(?string $fallback_command=null)
@inheritDoc
__construct(ilPageObjectGUI $page_gui, ilCtrl $ctrl, \ILIAS\DI\UIServices $ui, Message\ServerRequestInterface $request)
Class ilPageObjectGUI.
Class HTTPServicesTest.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
$server
Definition: shib_login.php:28