ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.InternalGUIService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Container;
22 
23 use ILIAS\DI;
25 
30 {
32 
35  protected static array $instance = [];
36 
37  public function __construct(
39  InternalDataService $data_service,
40  InternalDomainService $domain_service
41  ) {
42  $this->data_service = $data_service;
43  $this->domain_service = $domain_service;
44  $this->initGUIServices($DIC);
45  }
46 
47  public function standardRequest(): StandardGUIRequest
48  {
49  return new StandardGUIRequest(
50  $this->http(),
51  $this->domain_service->refinery()
52  );
53  }
54 
55  public function content(): Content\GUIService
56  {
57  return self::$instance["content"] ??= new Content\GUIService(
58  $this->data_service,
59  $this->domain_service,
60  $this
61  );
62  }
63 
64  public function classification(): Classification\GUIService
65  {
66  return self::$instance["classification"] ??= new Classification\GUIService(
67  $this->domain_service,
68  $this
69  );
70  }
71 
72  public function filter(): Filter\GUIService
73  {
74  return self::$instance["filter"] ??= new Filter\GUIService(
75  $this->data_service,
76  $this->domain_service,
77  $this
78  );
79  }
80 
81 }
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...
Definition: Container.php:19
Repository internal data service.
static http()
Fetches the global http state from ILIAS.
Class HTTPServicesTest.
__construct(DI\Container $DIC, InternalDataService $data_service, InternalDomainService $domain_service)
global $DIC
Definition: shib_login.php:26