ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
UIComponent.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 $contribute[Component\Resource\PublicAsset::class] = fn() =>
36 new Component\Resource\ComponentJS($this, "Explorer2.js");
37 $contribute[Component\Resource\PublicAsset::class] = fn() =>
38 new Component\Resource\ComponentJS($this, "LegacyModal.js");
39 $contribute[Component\Resource\PublicAsset::class] = fn() =>
40 new Component\Resource\ComponentJS($this, "ilExplorer.js");
41 $contribute[Component\Resource\PublicAsset::class] = fn() =>
42 new Component\Resource\ComponentJS($this, "progress_bar.js");
43 $contribute[Component\Resource\PublicAsset::class] = fn() =>
44 new Component\Resource\ComponentJS($this, "ilTextHighlighter.js");
45
46 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
47 public function getSource(): string
48 {
49 return "node_modules/jstree";
50 }
51 public function getTarget(): string
52 {
53 return "node_modules/jstree";
54 }
55 };
56
57 /* This library was missing after discussing dependencies for ILIAS 10
58 $contribute[Component\Resource\PublicAsset::class] = static fn() =>
59 new Component\Resource\NodeModule("qtip2/dist/jquery.qtip.min.js");
60 */
61 /* This library was missing after discussing dependencies for ILIAS 10
62 $contribute[Component\Resource\PublicAsset::class] = static fn() =>
63 new Component\Resource\NodeModule("jstree/dist/jstree.js");
64 $contribute[Component\Resource\PublicAsset::class] = static fn() =>
65 new Component\Resource\NodeModule("jstree/dist/themes/default/style.min.css");
66 */
67 }
68}
This is a js file provided by some component.
Definition: ComponentJS.php:27
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: UIComponent.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.