ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
AllModernComponents.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Init;
22
34{
35 public function __construct(
36 protected \ILIAS\Refinery\Factory $refinery_factory,
37 protected \ILIAS\Data\Factory $data_factory,
38 protected \ILIAS\UI\Factory $ui_factory,
39 protected \ILIAS\UI\Renderer $ui_renderer,
40 protected \ILIAS\UI\Implementation\Component\Counter\Factory $ui_factory_counter,
41 protected \ILIAS\UI\Implementation\Component\Button\Factory $ui_factory_button,
42 protected \ILIAS\UI\Implementation\Component\Listing\Factory $ui_factory_listing,
43 protected \ILIAS\UI\Implementation\Component\Listing\Workflow\Factory $ui_factory_listing_workflow,
44 protected \ILIAS\UI\Implementation\Component\Listing\CharacteristicValue\Factory $ui_factory_listing_characteristic_value,
45 protected \ILIAS\UI\Implementation\Component\Listing\Entity\Factory $ui_factory_listing_entity,
46 protected \ILIAS\UI\Implementation\Component\Image\Factory $ui_factory_image,
47 protected \ILIAS\UI\Implementation\Component\Player\Factory $ui_factory_player,
48 protected \ILIAS\UI\Implementation\Component\Panel\Factory $ui_factory_panel,
49 protected \ILIAS\UI\Implementation\Component\Modal\Factory $ui_factory_modal,
50 protected \ILIAS\UI\Implementation\Component\Dropzone\Factory $ui_factory_dropzone,
51 protected \ILIAS\UI\Implementation\Component\Popover\Factory $ui_factory_popover,
52 protected \ILIAS\UI\Implementation\Component\Divider\Factory $ui_factory_divider,
53 protected \ILIAS\UI\Implementation\Component\Link\Factory $ui_factory_link,
54 protected \ILIAS\UI\Implementation\Component\Dropdown\Factory $ui_factory_dropdown,
55 protected \ILIAS\UI\Implementation\Component\Item\Factory $ui_factory_item,
56 protected \ILIAS\UI\Implementation\Component\Viewcontrol\Factory $ui_factory_viewcontrol,
57 protected \ILIAS\UI\Implementation\Component\Chart\Factory $ui_factory_chart,
58 protected \ILIAS\UI\Implementation\Component\Input\Factory $ui_factory_input,
59 protected \ILIAS\UI\Implementation\Component\Table\Factory $ui_factory_table,
60 protected \ILIAS\UI\Implementation\Component\MessageBox\Factory $ui_factory_messagebox,
61 protected \ILIAS\UI\Implementation\Component\Card\Factory $ui_factory_card,
62 protected \ILIAS\UI\Implementation\Component\Layout\Factory $ui_factory_layout,
63 protected \ILIAS\UI\Implementation\Component\Layout\Page\Factory $ui_factory_layout_page,
64 protected \ILIAS\UI\Implementation\Component\Layout\Alignment\Factory $ui_factory_layout_alignment,
65 protected \ILIAS\UI\Implementation\Component\Maincontrols\Factory $ui_factory_maincontrols,
66 protected \ILIAS\UI\Implementation\Component\Tree\Factory $ui_factory_tree,
67 protected \ILIAS\UI\Implementation\Component\Tree\Node\Factory $ui_factory_tree_node,
68 protected \ILIAS\UI\Implementation\Component\Menu\Factory $ui_factory_menu,
69 protected \ILIAS\UI\Implementation\Component\Symbol\Factory $ui_factory_symbol,
70 protected \ILIAS\UI\Implementation\Component\Toast\Factory $ui_factory_toast,
71 protected \ILIAS\UI\Implementation\Component\Legacy\Factory $ui_factory_legacy,
72 protected \ILIAS\UI\Implementation\Component\Launcher\Factory $ui_factory_launcher,
73 protected \ILIAS\UI\Implementation\Component\Entity\Factory $ui_factory_entity,
74 protected \ILIAS\UI\Implementation\Component\Panel\Listing\Factory $ui_factory_panel_listing,
75 protected \ILIAS\UI\Implementation\Component\Panel\Secondary\Factory $ui_factory_panel_secondary,
76 protected \ILIAS\UI\Implementation\Component\Modal\InterruptiveItem\Factory $ui_factory_interruptive_item,
77 protected \ILIAS\UI\Implementation\Component\Chart\ProgressMeter\Factory $ui_factory_progressmeter,
78 protected \ILIAS\UI\Implementation\Component\Chart\Bar\Factory $ui_factory_bar,
79 protected \ILIAS\UI\Implementation\Component\Input\Viewcontrol\Factory $ui_factory_input_viewcontrol,
80 protected \ILIAS\UI\Implementation\Component\Input\Container\ViewControl\Factory $ui_factory_input_container_viewcontrol,
81 protected \ILIAS\UI\Implementation\Component\Table\Column\Factory $ui_factory_table_column,
82 protected \ILIAS\UI\Implementation\Component\Table\Factory $ui_factory_table_action,
83 protected \ILIAS\UI\Implementation\Component\Maincontrols\Slate\Factory $ui_factory_maincontrols_slate,
84 protected \ILIAS\UI\Implementation\Component\Symbol\icon\Factory $ui_factory_symbol_icon,
85 protected \ILIAS\UI\Implementation\Component\Symbol\Glyph\Factory $ui_factory_symbol_glyph,
86 protected \ILIAS\UI\Implementation\Component\Symbol\avatar\Factory $ui_factory_symbol_avatar,
87 protected \ILIAS\UI\Implementation\Component\Input\Container\Form\Factory $ui_factory_input_container_form,
88 protected \ILIAS\UI\Implementation\Component\Input\Container\Filter\Factory $ui_factory_input_container_filter,
89 protected \ILIAS\UI\Implementation\Component\Input\Field\Factory $ui_factory_input_field,
90 protected \ILIAS\UI\Implementation\Component\Prompt\Factory $ui_prompt_factory,
91 protected \ILIAS\UI\Implementation\Component\Prompt\State\Factory $ui_prompt_state_factory,
92 protected \ILIAS\UI\Implementation\Component\Progress\Factory $ui_progress_factory,
93 protected \ILIAS\UI\Implementation\Component\Progress\State\Factory $ui_progress_state_factory,
94 protected \ILIAS\UI\Implementation\Component\Progress\State\Bar\Factory $ui_progress_state_bar_factory,
95 protected \ILIAS\UI\Implementation\Component\Input\UploadLimitResolver $ui_upload_limit_resolver,
96 protected \ILIAS\Setup\AgentFinder $setup_agent_finder,
97 protected \ILIAS\UI\Implementation\Component\Navigation\Factory $ui_factory_navigation,
98 ) {
99 }
100
110 protected function populateComponentsInLegacyEnvironment(\Pimple\Container $DIC): void
111 {
112 $DIC[\ILIAS\Data\Factory::class] = fn() => $this->data_factory;
113
114 $DIC['refinery'] = fn() => $this->refinery_factory;
115 $DIC['ui.factory.counter'] = fn() => $this->ui_factory_counter;
116 $DIC['ui.factory.button'] = fn() => $this->ui_factory_button;
117 $DIC['ui.factory.listing'] = fn() => $this->ui_factory_listing;
118 $DIC['ui.factory.listing.workflow'] = fn() => $this->ui_factory_listing_workflow;
119 $DIC['ui.factory.listing.characteristic_value'] = fn() => $this->ui_factory_listing_characteristic_value;
120 $DIC['ui.factory.listing.entity'] = fn() => $this->ui_factory_listing_entity;
121 $DIC['ui.factory.image'] = fn() => $this->ui_factory_image;
122 $DIC['ui.factory.player'] = fn() => $this->ui_factory_player;
123 $DIC['ui.factory.panel'] = fn() => $this->ui_factory_panel;
124 $DIC['ui.factory.modal'] = fn() => $this->ui_factory_modal;
125 $DIC['ui.factory.progress'] = fn() => $this->ui_progress_factory;
126 $DIC['ui.factory.progress.state'] = fn() => $this->ui_progress_state_factory;
127 $DIC['ui.factory.progress.state.bar'] = fn() => $this->ui_progress_state_bar_factory;
128 $DIC['ui.factory.dropzone'] = fn() => $this->ui_factory_dropzone;
129 $DIC['ui.factory.popover'] = fn() => $this->ui_factory_popover;
130 $DIC['ui.factory.divider'] = fn() => $this->ui_factory_divider;
131 $DIC['ui.factory.link'] = fn() => $this->ui_factory_link;
132 $DIC['ui.factory.dropdown'] = fn() => $this->ui_factory_dropdown;
133 $DIC['ui.factory.item'] = fn() => $this->ui_factory_item;
134 $DIC['ui.factory.viewcontrol'] = fn() => $this->ui_factory_viewcontrol;
135 $DIC['ui.factory.chart'] = fn() => $this->ui_factory_chart;
136 $DIC['ui.factory.input'] = fn() => $this->ui_factory_input;
137 $DIC['ui.factory.table'] = fn() => $this->ui_factory_table;
138 $DIC['ui.factory.messagebox'] = fn() => $this->ui_factory_messagebox;
139 $DIC['ui.factory.card'] = fn() => $this->ui_factory_card;
140 $DIC['ui.factory.layout'] = fn() => $this->ui_factory_layout;
141 $DIC['ui.factory.layout.page'] = fn() => $this->ui_factory_layout_page;
142 $DIC['ui.factory.layout.alignment'] = fn() => $this->ui_factory_layout_alignment;
143 $DIC['ui.factory.maincontrols'] = fn() => $this->ui_factory_maincontrols;
144 $DIC['ui.factory.tree'] = fn() => $this->ui_factory_tree;
145 $DIC['ui.factory.tree.node'] = fn() => $this->ui_factory_tree_node;
146 $DIC['ui.factory.menu'] = fn() => $this->ui_factory_menu;
147 $DIC['ui.factory.symbol'] = fn() => $this->ui_factory_symbol;
148 $DIC['ui.factory.toast'] = fn() => $this->ui_factory_toast;
149 $DIC['ui.factory.legacy'] = fn() => $this->ui_factory_legacy;
150 $DIC['ui.factory.launcher'] = fn() => $this->ui_factory_launcher;
151 $DIC['ui.factory.entity'] = fn() => $this->ui_factory_entity;
152 $DIC['ui.factory.prompt'] = fn() => $this->ui_prompt_factory;
153 $DIC['ui.factory.prompt.state'] = fn() => $this->ui_prompt_state_factory;
154 $DIC['ui.factory.panel.listing'] = fn() => $this->ui_factory_panel_listing;
155 $DIC['ui.factory.panel.secondary'] = fn() => $this->ui_factory_panel_secondary;
156 $DIC['ui.factory.interruptive_item'] = fn() => $this->ui_factory_interruptive_item;
157 $DIC['ui.factory.progressmeter'] = fn() => $this->ui_factory_progressmeter;
158 $DIC['ui.factory.bar'] = fn() => $this->ui_factory_bar;
159 $DIC['ui.factory.input.viewcontrol'] = fn() => $this->ui_factory_input_viewcontrol;
160 $DIC['ui.factory.input.container.viewcontrol'] = fn() => $this->ui_factory_input_container_viewcontrol;
161 $DIC['ui.factory.table.column'] = fn() => $this->ui_factory_table_column;
162 $DIC['ui.factory.table.action'] = fn() => $this->ui_factory_table_action;
163 $DIC['ui.factory.maincontrols.slate'] = fn() => $this->ui_factory_maincontrols_slate;
164 $DIC['ui.factory.symbol.icon'] = fn() => $this->ui_factory_symbol_icon;
165 $DIC['ui.factory.symbol.glyph'] = fn() => $this->ui_factory_symbol_glyph;
166 $DIC['ui.factory.symbol.avatar'] = fn() => $this->ui_factory_symbol_avatar;
167 $DIC['ui.factory.input.container.form'] = fn() => $this->ui_factory_input_container_form;
168 $DIC['ui.factory.input.container.filter'] = fn() => $this->ui_factory_input_container_filter;
169 $DIC['ui.factory.input.field'] = fn() => $this->ui_factory_input_field;
170 $DIC['ui.upload_limit_resolver'] = fn() => $this->ui_upload_limit_resolver;
171 $DIC['ui.factory'] = fn() => $this->ui_factory;
172 $DIC['ui.renderer'] = fn() => $this->ui_renderer;
173 $DIC['setup.agentfinder'] = fn() => $this->setup_agent_finder;
174 $DIC['ui.factory.navigation'] = fn() => $this->ui_factory_input_field;
175 }
176
177 public function getName(): string
178 {
179 return 'ILIAS Legacy Initialisation Adapter';
180 }
181
182 public function enter(): int
183 {
184 global $DIC;
185
186 $DIC = new \ILIAS\DI\Container();
187 $GLOBALS['DIC'] = $DIC;
188
190
192
193 return 0;
194 }
195}
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.
__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,)
enter()
Pass program execution to this entry point.
populateComponentsInLegacyEnvironment(\Pimple\Container $DIC)
Populates already bootstrapped components in the legacy service locator $DIC.
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.
global $DIC
Definition: shib_login.php:26
$GLOBALS["DIC"]
Definition: wac.php:54