ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
LTI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS;
22
25
32class LTI implements Component\Component
33{
34 public function init(
35 array | \ArrayAccess &$define,
36 array | \ArrayAccess &$implement,
37 array | \ArrayAccess &$use,
38 array | \ArrayAccess &$contribute,
39 array | \ArrayAccess &$seek,
40 array | \ArrayAccess &$provide,
41 array | \ArrayAccess &$pull,
42 array | \ArrayAccess &$internal,
43 ): void {
44 $define[] = \ILIAS\LTI\View::class;
45
46 $implement[\ILIAS\LTI\View::class] = static fn(): \ILIAS\LTI\View =>
47 $internal[\ilLTIViewGUI::class];
48
49 $contribute[\ILIAS\Setup\Agent::class] = static fn(): \ILIAS\Setup\Agent =>
50 new \ilLTISetupAgent($pull[\ILIAS\Refinery\Factory::class]);
51
52 $contribute[Component\Resource\PublicAsset::class] = fn() =>
53 new Component\Resource\Endpoint($this, "ltiresult.php");
54
55 $contribute[Component\Resource\PublicAsset::class] = fn() =>
56 new Component\Resource\Endpoint($this, "lti.php");
57
58 $contribute[Component\Resource\PublicAsset::class] = fn() =>
59 new Component\Resource\Endpoint($this, "lticerts.php");
60
61 $contribute[Component\Resource\PublicAsset::class] = fn() =>
62 new Component\Resource\Endpoint($this, "ltiauth.php");
63
64 $contribute[Component\Resource\PublicAsset::class] = fn() =>
65 new Component\Resource\Endpoint($this, "ltitoken.php");
66
67 $contribute[Component\Resource\PublicAsset::class] = fn() =>
68 new Component\Resource\Endpoint($this, "lticonfig.php");
69
70 $contribute[Component\Resource\PublicAsset::class] = fn() =>
71 new Component\Resource\Endpoint($this, "ltiregistration.php");
72
73 $contribute[Component\Resource\PublicAsset::class] = fn() =>
74 new Component\Resource\Endpoint($this, "ltitoolregistration.php");
75
76 $contribute[Component\Resource\PublicAsset::class] = fn() =>
77 new Component\Resource\Endpoint($this, "ltiservices.php");
78
79 $contribute[Component\Resource\PublicAsset::class] = fn() =>
80 new Component\Resource\ComponentCSS($this, "lti_creation.css");
81
82 $contribute[Component\Resource\PublicAsset::class] = fn() =>
83 new Component\Resource\ComponentCSS($this, "lti_view.css");
84
85 $contribute[LanguageFileDirectory::class] = fn() => new ComponentLanguageFileDirectory(
86 $this,
87 'ltiv'
88 );
89 $contribute[LanguageFileDirectory::class] = fn() => new ComponentLanguageFileDirectory(
90 $this,
91 'lti'
92 );
93
94 $internal[\ilLTIViewGUI::class] = static fn(): \ilLTIViewGUI =>
95 new \ilLTIViewGUI(
96 $use[\ILIAS\HTTP\GlobalHttpState::class],
97 $pull[\ILIAS\Refinery\Factory::class],
98 $use[\ILIAS\UI\Factory::class],
99 $use[\ILIAS\UI\Renderer::class],
100 $use[\ILIAS\UICore\GlobalTemplate::class],
101 $use[\ILIAS\Language\Language::class],
102 $internal[\ILIAS\LTI\View\CurrentUser::class],
103 $internal[\ILIAS\LTI\View\Navigation::class],
104 $internal[\ILIAS\LTI\View\ScreenContext::class],
105 $internal[\ILIAS\LTI\View\AuthSession::class],
106 );
107
108 $internal[\ILIAS\LTI\View\CurrentUser::class] = static fn(): \ILIAS\LTI\View\CurrentUser =>
109 new \ILIAS\LTI\View\CurrentUserLegacyProxy();
110
111 $internal[\ILIAS\LTI\View\Navigation::class] = static fn(): \ILIAS\LTI\View\Navigation =>
112 new \ILIAS\LTI\View\NavigationLegacyProxy();
113
114 $internal[\ILIAS\LTI\View\ScreenContext::class] = static fn(): \ILIAS\LTI\View\ScreenContext =>
115 new \ILIAS\LTI\View\ScreenContextLegacyProxy();
116
117 $internal[\ILIAS\LTI\View\AuthSession::class] = static fn(): \ILIAS\LTI\View\AuthSession =>
118 new \ILIAS\LTI\View\AuthSessionLegacyProxy();
119 }
120}
This is a css file provided by some component.
An endpoint is a PHP file that produces output via HTTP.
Definition: Endpoint.php:29
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
LTI component: LTI 1.1 (classes/LTI1p1) and LTI Advantage (classes/LTIAdvantage) for ILIAS as consume...
Definition: LTI.php:33
init(array|\ArrayAccess &$define, array|\ArrayAccess &$implement, array|\ArrayAccess &$use, array|\ArrayAccess &$contribute, array|\ArrayAccess &$seek, array|\ArrayAccess &$provide, array|\ArrayAccess &$pull, array|\ArrayAccess &$internal,)
Definition: LTI.php:34
Definition: UI.php:27
Setup agent of the LTI component: runs the LTI database update steps.
The LTI view of a user who came from a platform: ILIAS shows the launched object without its own navi...
Interface GlobalHttpState.
A directory of language files with a path and a prefix for them.
A component is the most general form of an entity in the UI.
Definition: Component.php:28
An entity that renders components to a string output.
Definition: Renderer.php:31
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.