ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Scorm2004.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS;
22
24{
25 public function init(
26 array | \ArrayAccess &$define,
27 array | \ArrayAccess &$implement,
28 array | \ArrayAccess &$use,
29 array | \ArrayAccess &$contribute,
30 array | \ArrayAccess &$seek,
31 array | \ArrayAccess &$provide,
32 array | \ArrayAccess &$pull,
33 array | \ArrayAccess &$internal,
34 ): void {
35
36 $contribute[\ILIAS\Setup\Agent::class] = static fn() =>
38 $pull[\ILIAS\Refinery\Factory::class]
39 );
40
41 $contribute[Component\Resource\PublicAsset::class] = fn() =>
42 new Component\Resource\Endpoint($this, "storeScorm2004.php");
43
44 $contribute[Component\Resource\PublicAsset::class] = fn() =>
45 new Component\Resource\Endpoint($this, "storeScorm.php");
46
47 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
48 public function getSource(): string
49 {
50 return "components/ILIAS/Scorm2004/scripts";
51 }
52 public function getTarget(): string
53 {
54 return "components/ILIAS/Scorm2004/scripts";
55 }
56 };
57
58 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
59 public function getSource(): string
60 {
61 return "components/ILIAS/Scorm2004/templates/default/images";
62 }
63 public function getTarget(): string
64 {
65 return "components/ILIAS/Scorm2004/templates/default/images";
66 }
67 };
68
69 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
70 public function getSource(): string
71 {
72 return "components/ILIAS/Scorm2004/templates/default/images";
73 }
74 public function getTarget(): string
75 {
76 return "components/ILIAS/UI/resources/images/scorm2004";
77 }
78 };
79
80 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
81 public function getSource(): string
82 {
83 return "components/ILIAS/Scorm2004/templates/default/player.css";
84 }
85 public function getTarget(): string
86 {
87 return "components/ILIAS/Scorm2004/templates/default/player.css";
88 }
89 };
90 }
91}
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:25
An public asset is a file or folder that should be served via the web.
Definition: PublicAsset.php:27
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.