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\Glossary;
22 
26 
28 {
30 
31  protected static array $instance = [];
32 
33  public function __construct(
35  protected InternalDataService $data_service,
36  protected InternalDomainService $domain_service
37  ) {
38  $this->initGUIServices($DIC);
39  }
40 
41  public function editing(): Editing\GUIService
42  {
43  return self::$instance["editing"] ??= new Editing\GUIService(
44  $this->domain_service,
45  $this
46  );
47  }
48 
49  public function presentation(): Presentation\GUIService
50  {
51  return self::$instance["presentation"] ??= new Presentation\GUIService(
52  $this->domain_service,
53  $this
54  );
55  }
56 
57  public function settings(): Settings\GUIService
58  {
59  return self::$instance["settings"] ??= new Settings\GUIService(
60  $this->data_service,
61  $this->domain_service,
62  $this
63  );
64  }
65 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initGUIServices(\ILIAS\DI\Container $DIC)
__construct(Container $DIC, protected InternalDataService $data_service, protected InternalDomainService $domain_service)
global $DIC
Definition: shib_login.php:26