ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.InternalGUIService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Container;
22
23use ILIAS\DI;
25
30{
32
35 protected static array $instance = [];
36
37 public function __construct(
41 ) {
42 $this->data_service = $data_service;
43 $this->domain_service = $domain_service;
44 $this->initGUIServices($DIC);
45 }
46
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}
Repository internal data service.
__construct(DI\Container $DIC, InternalDataService $data_service, InternalDomainService $domain_service)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
Class HTTPServicesTest.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Container.php:19
static http()
Fetches the global http state from ILIAS.
initGUIServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26