ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
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\Wiki;
22 
26 use ILIAS\Wiki\Page;
28 
30 {
32  protected static array $instance = [];
33 
34  public function __construct(
36  protected InternalDataService $data_service,
37  protected InternalDomainService $domain_service
38  ) {
39  $this->initGUIServices($DIC);
40  }
41 
42  public function request(
43  ?array $passed_query_params = null,
44  ?array $passed_post_data = null
45  ): WikiGUIRequest {
46  return new WikiGUIRequest(
47  $this->http(),
48  $this->domain_service->refinery(),
49  $passed_query_params,
50  $passed_post_data
51  );
52  }
53 
54  public function content(): Content\GUIService
55  {
56  return self::$instance["content"] ??= new Content\GUIService(
57  $this->domain_service,
58  $this
59  );
60  }
61 
62  public function page(): Page\GUIService
63  {
64  return self::$instance["page"] ??= new Page\GUIService(
65  $this->domain_service,
66  $this
67  );
68  }
69 
70  public function notification(): NotificationGUI
71  {
72  return self::$instance["notification"] ??= new NotificationGUI(
73  $this->domain_service,
74  $this
75  );
76  }
77 
78  public function wiki(): Wiki\GUIService
79  {
80  return self::$instance["wiki"] ??= new Wiki\GUIService(
81  $this->domain_service,
82  $this
83  );
84  }
85 
86  public function settings(
87  ): Settings\GUIService {
88  return self::$instance["settings"] ??= new Settings\GUIService(
89  $this->data_service,
90  $this->domain_service,
91  $this
92  );
93  }
94 
95 }
initGUIServices(\ILIAS\DI\Container $DIC)
__construct(Container $DIC, protected InternalDataService $data_service, protected InternalDomainService $domain_service)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static http()
Fetches the global http state from ILIAS.
global $DIC
Definition: shib_login.php:22
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This class is only in GUI layer, since it needs to get the abstracts for the page GUI...
Wiki page.
Definition: Page.php:26
request(?array $passed_query_params=null, ?array $passed_post_data=null)