ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
class.InternalGUIService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\MediaPool;
22
27
29{
30 use GlobalDICGUIServices;
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
42 {
43 return self::$instance["request"] ??= new StandardGUIRequest(
44 $this->http(),
45 $this->domain_service->refinery()
46 );
47 }
48
49 public function clipboard(): GUIService
50 {
51 return self::$instance["clipboard"] ??= new GUIService(
52 $this->domain_service,
53 $this
54 );
55 }
56
57 public function settings(
59 return self::$instance["settings"] ??= new Settings\GUIService(
60 $this->data_service,
61 $this->domain_service,
62 $this
63 );
64 }
65
66 public function permanentLink(
67 int $ref_id = 0
70 $this->domain_service->staticUrl(),
71 $this,
73 );
74 }
75
76}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
Repository internal data service.
__construct(Container $DIC, protected InternalDataService $data_service, protected InternalDomainService $domain_service)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$ref_id
Definition: ltiauth.php:66
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...
initGUIServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26