ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
Scorm2004.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS;
22
25
27{
28 public function init(
29 array | \ArrayAccess &$define,
30 array | \ArrayAccess &$implement,
31 array | \ArrayAccess &$use,
32 array | \ArrayAccess &$contribute,
33 array | \ArrayAccess &$seek,
34 array | \ArrayAccess &$provide,
35 array | \ArrayAccess &$pull,
36 array | \ArrayAccess &$internal,
37 ): void {
38
39 $contribute[\ILIAS\Setup\Agent::class] = static fn() =>
41 $pull[\ILIAS\Refinery\Factory::class]
42 );
43
44 $contribute[Component\Resource\PublicAsset::class] = fn() =>
45 new Component\Resource\Endpoint($this, "storeScorm2004.php");
46
47 $contribute[Component\Resource\PublicAsset::class] = fn() =>
48 new Component\Resource\Endpoint($this, "storeScorm.php");
49
50 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
51 public function getSource(): string
52 {
53 return "components/ILIAS/Scorm2004/scripts";
54 }
55 public function getTarget(): string
56 {
57 return "components/ILIAS/Scorm2004/scripts";
58 }
59 };
60
61 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
62 public function getSource(): string
63 {
64 return "components/ILIAS/Scorm2004/templates/default/images";
65 }
66 public function getTarget(): string
67 {
68 return "components/ILIAS/Scorm2004/templates/default/images";
69 }
70 };
71
72 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
73 public function getSource(): string
74 {
75 return "components/ILIAS/Scorm2004/templates/default/images";
76 }
77 public function getTarget(): string
78 {
79 return "components/ILIAS/UI/resources/images/scorm2004";
80 }
81 };
82
83 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
84 public function getSource(): string
85 {
86 return "components/ILIAS/Scorm2004/templates/default/player.css";
87 }
88 public function getTarget(): string
89 {
90 return "components/ILIAS/Scorm2004/templates/default/player.css";
91 }
92 };
93
94 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
95 public function getSource(): string
96 {
97 return "components/ILIAS/Scorm2004/templates/default/session_timeout.html";
98 }
99 public function getTarget(): string
100 {
101 return "components/ILIAS/Scorm2004/templates/default/session_timeout.html";
102 }
103 };
104 $contribute[LanguageFileDirectory::class] = fn() => new ComponentLanguageFileDirectory(
105 $this,
106 'scormdebug'
107 );
108 }
109}
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
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: Scorm2004.php:28
An public asset is a file or folder that should be served via the web.
Definition: PublicAsset.php:27
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
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.