ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.InternalGUIService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\BookingManager;
22 
25 
30 {
32  protected static array $instances = [];
35 
36  public function __construct(
38  InternalDataService $data_service,
39  InternalDomainService $domain_service
40  ) {
41  $this->data_service = $data_service;
42  $this->domain_service = $domain_service;
43  $this->initGUIServices($DIC);
44  }
45 
46  public function preferences(): Preferences\GUIService
47  {
48  return new Preferences\GUIService(
49  $this->data_service,
50  $this->domain_service,
51  $this
52  );
53  }
54 
55  public function process(): BookingProcess\GUIService
56  {
57  return new BookingProcess\GUIService(
58  $this->data_service,
59  $this->domain_service,
60  $this
61  );
62  }
63 
64  public function objects(): Objects\GUIService
65  {
66  return new Objects\GUIService(
67  $this->data_service,
68  $this->domain_service,
69  $this
70  );
71  }
72 
74  {
75  return new \ilBookingHelpAdapter($pool, $this->help());
76  }
77 
79  {
80  return new StandardGUIRequest(
81  $this->http(),
82  $this->domain_service->refinery()
83  );
84  }
85 
86  public function settings(): Settings\GUIService
87  {
88  return self::$instances["settings"] ??= new Settings\GUIService(
89  $this->data_service,
90  $this->domain_service,
91  $this
92  );
93  }
94 
95 }
initGUIServices(\ILIAS\DI\Container $DIC)
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...
Author: Alexander Killing killing@leifos.de
static http()
Fetches the global http state from ILIAS.
__construct(Container $DIC, InternalDataService $data_service, InternalDomainService $domain_service)
global $DIC
Definition: shib_login.php:22