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\Blog;
22
27
29{
30 use GlobalDICGUIServices;
31
32 protected static array $instance = [];
33
34 public function __construct(
36 protected InternalDataService $data_service,
37 protected InternalDomainService $domain_service
38 ) {
39 $this->initGUIServices($DIC);
40 }
41
42 public function navigation(): Navigation\GUIService
43 {
44 return new Navigation\GUIService(
45 $this->domain_service,
46 $this
47 );
48 }
49
50 public function presentation(): Presentation\GUIService
51 {
52 return new Presentation\GUIService(
53 $this->domain_service,
54 $this
55 );
56 }
57
59 {
60 return new StandardGUIRequest(
61 $this->http(),
62 $this->domain_service->refinery()
63 );
64 }
65
66 public function contributor(): Contributor\GUIService
67 {
68 return new Contributor\GUIService(
69 $this->data_service,
70 $this->domain_service,
71 $this
72 );
73 }
74
75 public function exercise(): Exercise\GUIService
76 {
77 return new Exercise\GUIService(
78 $this->data_service,
79 $this->domain_service,
80 $this
81 );
82 }
83
84 public function permanentLink(
85 int $ref_id = 0,
86 int $wsp_id = 0
89 $this->domain_service->staticUrl(),
90 $this,
91 $ref_id,
92 $wsp_id
93 );
94 }
95
96 public function settings(): Settings\GUIService
97 {
98 return self::$instance["settings"] ??
99 self::$instance["settings"] = new Settings\GUIService(
100 $this->data_service,
101 $this->domain_service,
102 $this
103 );
104 }
105
106 public function readingTime(): GUIService
107 {
108 return self::$instance["reading_time"] ??
109 self::$instance["reading_time"] = new ReadingTime\GUIService(
110 $this->data_service,
111 $this->domain_service,
112 $this
113 );
114 }
115}
permanentLink(int $ref_id=0, int $wsp_id=0)
__construct(Container $DIC, protected InternalDataService $data_service, protected InternalDomainService $domain_service)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
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.
initGUIServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26