ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.InternalGUIService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Wiki;
22 
26 use ILIAS\Wiki\Page;
28 
33 {
35 
38 
39  public function __construct(
41  InternalDataService $data_service,
42  InternalDomainService $domain_service
43  ) {
44  $this->data_service = $data_service;
45  $this->domain_service = $domain_service;
46  $this->initGUIServices($DIC);
47  }
48 
49  public function request(
50  ?array $passed_query_params = null,
51  ?array $passed_post_data = null
52  ): WikiGUIRequest {
53  return new WikiGUIRequest(
54  $this->http(),
55  $this->domain_service->refinery(),
58  );
59  }
60 
61  public function content(): Content\GUIService
62  {
63  return new Content\GUIService(
64  $this->domain_service,
65  $this
66  );
67  }
68 
69  public function page(): Page\GUIService
70  {
71  return new Page\GUIService(
72  $this->domain_service,
73  $this
74  );
75  }
76 
77  public function notification(): NotificationGUI
78  {
79  return new NotificationGUI(
80  $this->domain_service,
81  $this
82  );
83  }
84 
85  public function wiki(): Wiki\GUIService
86  {
87  return new Wiki\GUIService(
88  $this->domain_service,
89  $this
90  );
91  }
92 
93 }
initGUIServices(\ILIAS\DI\Container $DIC)
__construct(Container $DIC, InternalDataService $data_service, InternalDomainService $domain_service)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
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...
Definition: Page.php:21
This class is only in GUI layer, since it needs to get the abstracts for the page GUI...
Wiki page.
Definition: Page.php:26
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
request(?array $passed_query_params=null, ?array $passed_post_data=null)