ILIAS  trunk Revision v12.0_alpha-1338-g8f7e531aa3c
MediaObjects.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[\ILIAS\Setup\Agent::class] = static fn() =>
37 $pull[\ILIAS\Refinery\Factory::class]
38 );
39 $contribute[\ILIAS\Setup\Agent::class] = static fn() =>
40 new \ILIAS\MediaObjects\Setup\DBUpdateAgent(
41 $pull[\ILIAS\Refinery\Factory::class]
42 );
43
44 $contribute[Component\Resource\PublicAsset::class] = fn() =>
45 new Component\Resource\ComponentJS($this, "MediaObjectsCompletion.js");
46 $contribute[Component\Resource\PublicAsset::class] = fn() =>
47 new Component\Resource\ComponentJS($this, "ServiceMediaObjectPropWidthHeight.js");
48
49 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
50 public function getSource(): string
51 {
52 return "components/ILIAS/MediaObjects/js";
53 }
54 public function getTarget(): string
55 {
56 return "components/ILIAS/MediaObjects/js";
57 }
58 };
59
60 /* This library was missing after discussing dependencies for ILIAS 10
61 $contribute[Component\Resource\PublicAsset::class] = static fn() =>
62 new Component\Resource\NodeModule("mediaelement/build/mediaelement-and-player.min.js");
63 */
64 /* This is missing in the node-modules-build, but added in PHP code.
65 $contribute[Component\Resource\PublicAsset::class] = static fn() =>
66 new Component\Resource\NodeModule("mediaelement/build/vimeo.min.js");
67 */
68 /* This library was missing after discussing dependencies for ILIAS 10
69 $contribute[Component\Resource\PublicAsset::class] = static fn() =>
70 new Component\Resource\NodeModule("mediaelement/build/mediaelementplayer.min.css");
71 */
72 }
73}
This is a js file provided by some component.
Definition: ComponentJS.php:27
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,)
Richard Klees richard.klees@concepts-and-training.de
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.