ILIAS  trunk Revision v11.0_alpha-1851-ga8564da6fed
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\MediaPool;
22 
26 
28 {
30  protected static array $instance = [];
31 
32  public function __construct(
34  protected InternalDataService $data_service,
35  protected InternalDomainService $domain_service
36  ) {
37  $this->initGUIServices($DIC);
38  }
39 
40  public function standardRequest(): StandardGUIRequest
41  {
42  return self::$instance["request"] ??= new StandardGUIRequest(
43  $this->http(),
44  $this->domain_service->refinery()
45  );
46  }
47 
48  public function clipboard(): GUIService
49  {
50  return self::$instance["clipboard"] ??= new GUIService(
51  $this->domain_service,
52  $this
53  );
54  }
55 
56  public function settings(
57  ): Settings\GUIService {
58  return self::$instance["settings"] ??= new Settings\GUIService(
59  $this->data_service,
60  $this->domain_service,
61  $this
62  );
63  }
64 
65 }
__construct(Container $DIC, protected InternalDataService $data_service, protected InternalDomainService $domain_service)
initGUIServices(\ILIAS\DI\Container $DIC)
static http()
Fetches the global http state from ILIAS.
Repository internal data service.
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...