ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilPageEditorServerAdapterGUI.php
Go to the documentation of this file.
1 <?php
2 
21 
28 {
30  protected \ILIAS\DI\UIServices $ui;
31  protected ilCtrl $ctrl;
32  protected Message\ServerRequestInterface $request;
33 
34  public function __construct(
35  ilPageObjectGUI $page_gui,
36  ilCtrl $ctrl,
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  {
48  $ctrl = $this->ctrl;
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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getCmd(string $fallback_command=null)
Class ChatMainBarProvider .
Class ilPageObjectGUI.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getNextClass($a_gui_class=null)
Class HTTPServicesTest.
$server
__construct(ilPageObjectGUI $page_gui, ilCtrl $ctrl, \ILIAS\DI\UIServices $ui, Message\ServerRequestInterface $request)