ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\COPage Class Reference
+ Inheritance diagram for ILIAS\COPage:
+ Collaboration diagram for ILIAS\COPage:

Public Member Functions

 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,)
 
 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,)
 

Static Public Member Functions

static getEditorAssetVersion ()
 

Detailed Description

Definition at line 26 of file COPage.php.

Member Function Documentation

◆ getEditorAssetVersion()

static ILIAS\COPage::getEditorAssetVersion ( )
static

Definition at line 28 of file COPage.php.

28 : string
29 {
30 return \ILIAS\COPage\Setup\EditorAssetVersionObjective::getVersion();
31 }

Referenced by ILIAS\COPage\PC\InteractiveImage\IIMEditorInit\getInitHtml().

+ Here is the caller graph for this function:

◆ init()

ILIAS\COPage::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 
)

Implements ILIAS\Component\Component.

Definition at line 33 of file COPage.php.

42 : void {
43 $contribute[\ILIAS\Setup\Agent::class] = static fn() =>
44 new \ILIAS\COPage\Setup\Agent(
45 $pull[\ILIAS\Refinery\Factory::class]
46 );
47
48 // This is included via anonymous classes as a testament to the fact, that
49 // the js and css of the COPage should be restructured according to the target
50 // structure in the component directory and the public directory.
51 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
52 public function getSource(): string
53 {
54 return "components/ILIAS/COPage/PC/InteractiveImage/js";
55 }
56 public function getTarget(): string
57 {
59 return "components/ILIAS/COPage/" . $asset_version . "/PC/InteractiveImage/js";
60 }
61 };
62 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
63 public function getSource(): string
64 {
65 return "components/ILIAS/COPage/PC/Tabs/js";
66 }
67 public function getTarget(): string
68 {
69 return "components/ILIAS/COPage/PC/Tabs/js";
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/COPage/Editor/js";
76 }
77 public function getTarget(): string
78 {
80 return "components/ILIAS/COPage/" . $asset_version . "/Editor/js";
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/COPage/js";
87 }
88 public function getTarget(): string
89 {
90 return "components/ILIAS/COPage/js";
91 }
92 };
93 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
94 public function getSource(): string
95 {
96 return "components/ILIAS/COPage/css";
97 }
98 public function getTarget(): string
99 {
100 return "components/ILIAS/COPage/css";
101 }
102 };
103 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
104 public function getSource(): string
105 {
106 return "vendor/ilias/Style/basic_style";
107 }
108 public function getTarget(): string
109 {
110 return "components/ILIAS/COPage/basic_style";
111 }
112 };
113 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
114 public function getSource(): string
115 {
116 return "components/ILIAS/COPage/IntLink/resources/ilIntLink.js";
117 }
118 public function getTarget(): string
119 {
120 return "assets/js/ilIntLink.js";
121 }
122 };
123 // this is just a dummy to make the html export to the same
124 // target assets/content_style/style.css work
125 $contribute[Component\Resource\PublicAsset::class] = static fn() => new class () implements Component\Resource\PublicAsset {
126 public function getSource(): string
127 {
128 return "components/ILIAS/COPage/css/content_base.css";
129 }
130 public function getTarget(): string
131 {
132 return "assets/content_style/style.css";
133 }
134 };
135
136 $contribute[LanguageFileDirectory::class] = fn() => new ComponentLanguageFileDirectory(
137 $this,
138 'adve'
139 );
140 $contribute[LanguageFileDirectory::class] = fn() => new ComponentLanguageFileDirectory(
141 $this,
142 'link'
143 );
144 $contribute[LanguageFileDirectory::class] = fn() => new ComponentLanguageFileDirectory(
145 $this,
146 'copg'
147 );
148 $contribute[LanguageFileDirectory::class] = fn() => new ComponentLanguageFileDirectory(
149 $this,
150 'content'
151 );
152 }
An public asset is a file or folder that should be served via the web.
Definition: PublicAsset.php:27
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.

References ILIAS\COPage\Setup\EditorAssetVersionObjective\getVersionFromSource().

Referenced by ILIAS\COPage\ResourcesCollector\__construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: