ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
AllModernComponents.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Init;
22
24
36{
37 public function __construct(
38 protected \ILIAS\Refinery\Factory $refinery_factory,
39 protected \ILIAS\Data\Factory $data_factory,
40 protected \ILIAS\UI\Factory $ui_factory,
41 protected \ILIAS\UI\Renderer $ui_renderer,
42 protected \ILIAS\UI\Implementation\Component\Counter\Factory $ui_factory_counter,
43 protected \ILIAS\UI\Implementation\Component\Button\Factory $ui_factory_button,
44 protected \ILIAS\UI\Implementation\Component\Listing\Factory $ui_factory_listing,
45 protected \ILIAS\UI\Implementation\Component\Listing\Workflow\Factory $ui_factory_listing_workflow,
46 protected \ILIAS\UI\Implementation\Component\Listing\CharacteristicValue\Factory $ui_factory_listing_characteristic_value,
47 protected \ILIAS\UI\Implementation\Component\Listing\Entity\Factory $ui_factory_listing_entity,
48 protected \ILIAS\UI\Implementation\Component\Image\Factory $ui_factory_image,
49 protected \ILIAS\UI\Implementation\Component\Player\Factory $ui_factory_player,
50 protected \ILIAS\UI\Implementation\Component\Panel\Factory $ui_factory_panel,
51 protected \ILIAS\UI\Implementation\Component\Modal\Factory $ui_factory_modal,
52 protected \ILIAS\UI\Implementation\Component\Dropzone\Factory $ui_factory_dropzone,
53 protected \ILIAS\UI\Implementation\Component\Popover\Factory $ui_factory_popover,
54 protected \ILIAS\UI\Implementation\Component\Divider\Factory $ui_factory_divider,
55 protected \ILIAS\UI\Implementation\Component\Link\Factory $ui_factory_link,
56 protected \ILIAS\UI\Implementation\Component\Dropdown\Factory $ui_factory_dropdown,
57 protected \ILIAS\UI\Implementation\Component\Item\Factory $ui_factory_item,
58 protected \ILIAS\UI\Implementation\Component\Viewcontrol\Factory $ui_factory_viewcontrol,
59 protected \ILIAS\UI\Implementation\Component\Chart\Factory $ui_factory_chart,
60 protected \ILIAS\UI\Implementation\Component\Input\Factory $ui_factory_input,
61 protected \ILIAS\UI\Implementation\Component\Table\Factory $ui_factory_table,
62 protected \ILIAS\UI\Implementation\Component\MessageBox\Factory $ui_factory_messagebox,
63 protected \ILIAS\UI\Implementation\Component\Card\Factory $ui_factory_card,
64 protected \ILIAS\UI\Implementation\Component\Layout\Factory $ui_factory_layout,
65 protected \ILIAS\UI\Implementation\Component\Layout\Page\Factory $ui_factory_layout_page,
66 protected \ILIAS\UI\Implementation\Component\Layout\Alignment\Factory $ui_factory_layout_alignment,
67 protected \ILIAS\UI\Implementation\Component\Maincontrols\Factory $ui_factory_maincontrols,
68 protected \ILIAS\UI\Implementation\Component\Tree\Factory $ui_factory_tree,
69 protected \ILIAS\UI\Implementation\Component\Tree\Node\Factory $ui_factory_tree_node,
70 protected \ILIAS\UI\Implementation\Component\Menu\Factory $ui_factory_menu,
71 protected \ILIAS\UI\Implementation\Component\Symbol\Factory $ui_factory_symbol,
72 protected \ILIAS\UI\Implementation\Component\Toast\Factory $ui_factory_toast,
73 protected \ILIAS\UI\Implementation\Component\Legacy\Factory $ui_factory_legacy,
74 protected \ILIAS\UI\Implementation\Component\Launcher\Factory $ui_factory_launcher,
75 protected \ILIAS\UI\Implementation\Component\Entity\Factory $ui_factory_entity,
76 protected \ILIAS\UI\Implementation\Component\Panel\Listing\Factory $ui_factory_panel_listing,
77 protected \ILIAS\UI\Implementation\Component\Panel\Secondary\Factory $ui_factory_panel_secondary,
78 protected \ILIAS\UI\Implementation\Component\Modal\InterruptiveItem\Factory $ui_factory_interruptive_item,
79 protected \ILIAS\UI\Implementation\Component\Chart\ProgressMeter\Factory $ui_factory_progressmeter,
80 protected \ILIAS\UI\Implementation\Component\Chart\Bar\Factory $ui_factory_bar,
81 protected \ILIAS\UI\Implementation\Component\Input\Viewcontrol\Factory $ui_factory_input_viewcontrol,
82 protected \ILIAS\UI\Implementation\Component\Input\Container\ViewControl\Factory $ui_factory_input_container_viewcontrol,
83 protected \ILIAS\UI\Implementation\Component\Table\Column\Factory $ui_factory_table_column,
84 protected \ILIAS\UI\Implementation\Component\Table\Factory $ui_factory_table_action,
85 protected \ILIAS\UI\Implementation\Component\Maincontrols\Slate\Factory $ui_factory_maincontrols_slate,
86 protected \ILIAS\UI\Implementation\Component\Symbol\icon\Factory $ui_factory_symbol_icon,
87 protected \ILIAS\UI\Implementation\Component\Symbol\Glyph\Factory $ui_factory_symbol_glyph,
88 protected \ILIAS\UI\Implementation\Component\Symbol\avatar\Factory $ui_factory_symbol_avatar,
89 protected \ILIAS\UI\Implementation\Component\Input\Container\Form\Factory $ui_factory_input_container_form,
90 protected \ILIAS\UI\Implementation\Component\Input\Container\Filter\Factory $ui_factory_input_container_filter,
91 protected \ILIAS\UI\Implementation\Component\Input\Field\Factory $ui_factory_input_field,
92 protected \ILIAS\UI\Implementation\Component\Prompt\Factory $ui_prompt_factory,
93 protected \ILIAS\UI\Implementation\Component\Prompt\State\Factory $ui_prompt_state_factory,
94 protected \ILIAS\UI\Implementation\Component\Progress\Factory $ui_progress_factory,
95 protected \ILIAS\UI\Implementation\Component\Progress\State\Factory $ui_progress_state_factory,
96 protected \ILIAS\UI\Implementation\Component\Progress\State\Bar\Factory $ui_progress_state_bar_factory,
97 protected \ILIAS\UI\Implementation\Component\Input\UploadLimitResolver $ui_upload_limit_resolver,
98 protected \ILIAS\Setup\AgentFinder $setup_agent_finder,
99 protected \ILIAS\UI\Implementation\Component\Navigation\Factory $ui_factory_navigation,
100 protected Environment $webdav_environment,
101 protected \ILIAS\UI\Implementation\Render\JavaScriptBinding $ui_java_script_binding,
102 protected \ILIAS\UI\Implementation\Component\SignalGeneratorInterface $ui_signal_generator,
103 protected \ILIAS\UI\Implementation\Render\TemplateFactory $ui_template_factory,
104 ) {
105 }
106
116 protected function populateComponentsInLegacyEnvironment(\Pimple\Container $DIC): void
117 {
118 $DIC[\ILIAS\Data\Factory::class] = fn() => $this->data_factory;
119
120 $DIC['refinery'] = fn() => $this->refinery_factory;
121 $DIC['ui.factory.counter'] = fn() => $this->ui_factory_counter;
122 $DIC['ui.factory.button'] = fn() => $this->ui_factory_button;
123 $DIC['ui.factory.listing'] = fn() => $this->ui_factory_listing;
124 $DIC['ui.factory.listing.workflow'] = fn() => $this->ui_factory_listing_workflow;
125 $DIC['ui.factory.listing.characteristic_value'] = fn() => $this->ui_factory_listing_characteristic_value;
126 $DIC['ui.factory.listing.entity'] = fn() => $this->ui_factory_listing_entity;
127 $DIC['ui.factory.image'] = fn() => $this->ui_factory_image;
128 $DIC['ui.factory.player'] = fn() => $this->ui_factory_player;
129 $DIC['ui.factory.panel'] = fn() => $this->ui_factory_panel;
130 $DIC['ui.factory.modal'] = fn() => $this->ui_factory_modal;
131 $DIC['ui.factory.progress'] = fn() => $this->ui_progress_factory;
132 $DIC['ui.factory.progress.state'] = fn() => $this->ui_progress_state_factory;
133 $DIC['ui.factory.progress.state.bar'] = fn() => $this->ui_progress_state_bar_factory;
134 $DIC['ui.factory.dropzone'] = fn() => $this->ui_factory_dropzone;
135 $DIC['ui.factory.popover'] = fn() => $this->ui_factory_popover;
136 $DIC['ui.factory.divider'] = fn() => $this->ui_factory_divider;
137 $DIC['ui.factory.link'] = fn() => $this->ui_factory_link;
138 $DIC['ui.factory.dropdown'] = fn() => $this->ui_factory_dropdown;
139 $DIC['ui.factory.item'] = fn() => $this->ui_factory_item;
140 $DIC['ui.factory.viewcontrol'] = fn() => $this->ui_factory_viewcontrol;
141 $DIC['ui.factory.chart'] = fn() => $this->ui_factory_chart;
142 $DIC['ui.factory.input'] = fn() => $this->ui_factory_input;
143 $DIC['ui.factory.table'] = fn() => $this->ui_factory_table;
144 $DIC['ui.factory.messagebox'] = fn() => $this->ui_factory_messagebox;
145 $DIC['ui.factory.card'] = fn() => $this->ui_factory_card;
146 $DIC['ui.factory.layout'] = fn() => $this->ui_factory_layout;
147 $DIC['ui.factory.layout.page'] = fn() => $this->ui_factory_layout_page;
148 $DIC['ui.factory.layout.alignment'] = fn() => $this->ui_factory_layout_alignment;
149 $DIC['ui.factory.maincontrols'] = fn() => $this->ui_factory_maincontrols;
150 $DIC['ui.factory.tree'] = fn() => $this->ui_factory_tree;
151 $DIC['ui.factory.tree.node'] = fn() => $this->ui_factory_tree_node;
152 $DIC['ui.factory.menu'] = fn() => $this->ui_factory_menu;
153 $DIC['ui.factory.symbol'] = fn() => $this->ui_factory_symbol;
154 $DIC['ui.factory.toast'] = fn() => $this->ui_factory_toast;
155 $DIC['ui.factory.legacy'] = fn() => $this->ui_factory_legacy;
156 $DIC['ui.factory.launcher'] = fn() => $this->ui_factory_launcher;
157 $DIC['ui.factory.entity'] = fn() => $this->ui_factory_entity;
158 $DIC['ui.factory.prompt'] = fn() => $this->ui_prompt_factory;
159 $DIC['ui.factory.prompt.state'] = fn() => $this->ui_prompt_state_factory;
160 $DIC['ui.factory.panel.listing'] = fn() => $this->ui_factory_panel_listing;
161 $DIC['ui.factory.panel.secondary'] = fn() => $this->ui_factory_panel_secondary;
162 $DIC['ui.factory.interruptive_item'] = fn() => $this->ui_factory_interruptive_item;
163 $DIC['ui.factory.progressmeter'] = fn() => $this->ui_factory_progressmeter;
164 $DIC['ui.factory.bar'] = fn() => $this->ui_factory_bar;
165 $DIC['ui.factory.input.viewcontrol'] = fn() => $this->ui_factory_input_viewcontrol;
166 $DIC['ui.factory.input.container.viewcontrol'] = fn() => $this->ui_factory_input_container_viewcontrol;
167 $DIC['ui.factory.table.column'] = fn() => $this->ui_factory_table_column;
168 $DIC['ui.factory.table.action'] = fn() => $this->ui_factory_table_action;
169 $DIC['ui.factory.maincontrols.slate'] = fn() => $this->ui_factory_maincontrols_slate;
170 $DIC['ui.factory.symbol.icon'] = fn() => $this->ui_factory_symbol_icon;
171 $DIC['ui.factory.symbol.glyph'] = fn() => $this->ui_factory_symbol_glyph;
172 $DIC['ui.factory.symbol.avatar'] = fn() => $this->ui_factory_symbol_avatar;
173 $DIC['ui.factory.input.container.form'] = fn() => $this->ui_factory_input_container_form;
174 $DIC['ui.factory.input.container.filter'] = fn() => $this->ui_factory_input_container_filter;
175 $DIC['ui.factory.input.field'] = fn() => $this->ui_factory_input_field;
176 $DIC['ui.upload_limit_resolver'] = fn() => $this->ui_upload_limit_resolver;
177 $DIC['ui.factory'] = fn() => $this->ui_factory;
178 $DIC['ui.renderer'] = fn() => $this->ui_renderer;
179 $DIC['setup.agentfinder'] = fn() => $this->setup_agent_finder;
180 $DIC['ui.factory.navigation'] = fn() => $this->ui_factory_input_field;
181 $DIC[Environment::class] = fn() => $this->webdav_environment;
182 $DIC['ui.javascript_binding'] = fn() => $this->ui_java_script_binding;
183 $DIC['ui.signal_generator'] = fn() => $this->ui_signal_generator;
184 $DIC['ui.template_factory'] = fn() => $this->ui_template_factory;
185 }
186
187 public function getName(): string
188 {
189 return 'ILIAS Legacy Initialisation Adapter';
190 }
191
192 public function enter(): int
193 {
194 global $DIC;
195
196 $DIC = new \ILIAS\DI\Container();
197 $GLOBALS['DIC'] = $DIC;
198
200
202
203 return 0;
204 }
205}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
This entry point can be thought of as a list of all modern components.
enter()
Pass program execution to this entry point.
populateComponentsInLegacyEnvironment(\Pimple\Container $DIC)
Populates already bootstrapped components in the legacy service locator $DIC.
__construct(protected \ILIAS\Refinery\Factory $refinery_factory, protected \ILIAS\Data\Factory $data_factory, protected \ILIAS\UI\Factory $ui_factory, protected \ILIAS\UI\Renderer $ui_renderer, protected \ILIAS\UI\Implementation\Component\Counter\Factory $ui_factory_counter, protected \ILIAS\UI\Implementation\Component\Button\Factory $ui_factory_button, protected \ILIAS\UI\Implementation\Component\Listing\Factory $ui_factory_listing, protected \ILIAS\UI\Implementation\Component\Listing\Workflow\Factory $ui_factory_listing_workflow, protected \ILIAS\UI\Implementation\Component\Listing\CharacteristicValue\Factory $ui_factory_listing_characteristic_value, protected \ILIAS\UI\Implementation\Component\Listing\Entity\Factory $ui_factory_listing_entity, protected \ILIAS\UI\Implementation\Component\Image\Factory $ui_factory_image, protected \ILIAS\UI\Implementation\Component\Player\Factory $ui_factory_player, protected \ILIAS\UI\Implementation\Component\Panel\Factory $ui_factory_panel, protected \ILIAS\UI\Implementation\Component\Modal\Factory $ui_factory_modal, protected \ILIAS\UI\Implementation\Component\Dropzone\Factory $ui_factory_dropzone, protected \ILIAS\UI\Implementation\Component\Popover\Factory $ui_factory_popover, protected \ILIAS\UI\Implementation\Component\Divider\Factory $ui_factory_divider, protected \ILIAS\UI\Implementation\Component\Link\Factory $ui_factory_link, protected \ILIAS\UI\Implementation\Component\Dropdown\Factory $ui_factory_dropdown, protected \ILIAS\UI\Implementation\Component\Item\Factory $ui_factory_item, protected \ILIAS\UI\Implementation\Component\Viewcontrol\Factory $ui_factory_viewcontrol, protected \ILIAS\UI\Implementation\Component\Chart\Factory $ui_factory_chart, protected \ILIAS\UI\Implementation\Component\Input\Factory $ui_factory_input, protected \ILIAS\UI\Implementation\Component\Table\Factory $ui_factory_table, protected \ILIAS\UI\Implementation\Component\MessageBox\Factory $ui_factory_messagebox, protected \ILIAS\UI\Implementation\Component\Card\Factory $ui_factory_card, protected \ILIAS\UI\Implementation\Component\Layout\Factory $ui_factory_layout, protected \ILIAS\UI\Implementation\Component\Layout\Page\Factory $ui_factory_layout_page, protected \ILIAS\UI\Implementation\Component\Layout\Alignment\Factory $ui_factory_layout_alignment, protected \ILIAS\UI\Implementation\Component\Maincontrols\Factory $ui_factory_maincontrols, protected \ILIAS\UI\Implementation\Component\Tree\Factory $ui_factory_tree, protected \ILIAS\UI\Implementation\Component\Tree\Node\Factory $ui_factory_tree_node, protected \ILIAS\UI\Implementation\Component\Menu\Factory $ui_factory_menu, protected \ILIAS\UI\Implementation\Component\Symbol\Factory $ui_factory_symbol, protected \ILIAS\UI\Implementation\Component\Toast\Factory $ui_factory_toast, protected \ILIAS\UI\Implementation\Component\Legacy\Factory $ui_factory_legacy, protected \ILIAS\UI\Implementation\Component\Launcher\Factory $ui_factory_launcher, protected \ILIAS\UI\Implementation\Component\Entity\Factory $ui_factory_entity, protected \ILIAS\UI\Implementation\Component\Panel\Listing\Factory $ui_factory_panel_listing, protected \ILIAS\UI\Implementation\Component\Panel\Secondary\Factory $ui_factory_panel_secondary, protected \ILIAS\UI\Implementation\Component\Modal\InterruptiveItem\Factory $ui_factory_interruptive_item, protected \ILIAS\UI\Implementation\Component\Chart\ProgressMeter\Factory $ui_factory_progressmeter, protected \ILIAS\UI\Implementation\Component\Chart\Bar\Factory $ui_factory_bar, protected \ILIAS\UI\Implementation\Component\Input\Viewcontrol\Factory $ui_factory_input_viewcontrol, protected \ILIAS\UI\Implementation\Component\Input\Container\ViewControl\Factory $ui_factory_input_container_viewcontrol, protected \ILIAS\UI\Implementation\Component\Table\Column\Factory $ui_factory_table_column, protected \ILIAS\UI\Implementation\Component\Table\Factory $ui_factory_table_action, protected \ILIAS\UI\Implementation\Component\Maincontrols\Slate\Factory $ui_factory_maincontrols_slate, protected \ILIAS\UI\Implementation\Component\Symbol\icon\Factory $ui_factory_symbol_icon, protected \ILIAS\UI\Implementation\Component\Symbol\Glyph\Factory $ui_factory_symbol_glyph, protected \ILIAS\UI\Implementation\Component\Symbol\avatar\Factory $ui_factory_symbol_avatar, protected \ILIAS\UI\Implementation\Component\Input\Container\Form\Factory $ui_factory_input_container_form, protected \ILIAS\UI\Implementation\Component\Input\Container\Filter\Factory $ui_factory_input_container_filter, protected \ILIAS\UI\Implementation\Component\Input\Field\Factory $ui_factory_input_field, protected \ILIAS\UI\Implementation\Component\Prompt\Factory $ui_prompt_factory, protected \ILIAS\UI\Implementation\Component\Prompt\State\Factory $ui_prompt_state_factory, protected \ILIAS\UI\Implementation\Component\Progress\Factory $ui_progress_factory, protected \ILIAS\UI\Implementation\Component\Progress\State\Factory $ui_progress_state_factory, protected \ILIAS\UI\Implementation\Component\Progress\State\Bar\Factory $ui_progress_state_bar_factory, protected \ILIAS\UI\Implementation\Component\Input\UploadLimitResolver $ui_upload_limit_resolver, protected \ILIAS\Setup\AgentFinder $setup_agent_finder, protected \ILIAS\UI\Implementation\Component\Navigation\Factory $ui_factory_navigation, protected Environment $webdav_environment, protected \ILIAS\UI\Implementation\Render\JavaScriptBinding $ui_java_script_binding, protected \ILIAS\UI\Implementation\Component\SignalGeneratorInterface $ui_signal_generator, protected \ILIAS\UI\Implementation\Render\TemplateFactory $ui_template_factory,)
global $DIC
Definition: error.php:36
Definition: UI.php:24
static initILIAS()
ilias initialisation
An entrypoint is where the programm execution starts.
Definition: EntryPoint.php:28
This describes a symbol.
Definition: Symbol.php:30
An entity that renders components to a string output.
Definition: Renderer.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
$GLOBALS["DIC"]
Definition: wac.php:54