ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.GUIService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
27{
28 protected static array $instance = [];
29
30 public function __construct(
31 protected InternalGUIService $ui_service,
32 protected InternalDomainService $domain_service
33 ) {
34 }
35
36 public function request(): ExecutionGUIRequest
37 {
38 return self::$instance["ex_request"] ??
39 self::$instance["ex_request"] = new ExecutionGUIRequest(
40 $this->ui_service->http(),
41 $this->domain_service->refinery()
42 );
43 }
44
45 public function launchGUI(
46 \ilObjSurvey $survey
47 ): LaunchGUI {
48 return self::$instance["launch_gui"][$survey->getId()] ??
49 self::$instance["launch_gui"][$survey->getId()] = new LaunchGUI(
50 $this->domain_service,
51 $this->ui_service,
52 $survey
53 );
54 }
55}
__construct(protected InternalGUIService $ui_service, protected InternalDomainService $domain_service)
return['delivery_method'=> 'php',]
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...