ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
Factory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
27class Factory implements FactoryInternal
28{
29 public function __construct(
30 protected I\Counter\Factory $counter_factory,
31 protected I\Button\Factory $button_factory,
32 protected I\Listing\Factory $listing_factory,
33 protected I\Image\Factory $image_factory,
34 protected I\Player\Factory $player_factory,
35 protected I\Panel\Factory $panel_factory,
36 protected I\Modal\Factory $modal_factory,
37 protected I\Progress\Factory $progress_factory,
38 protected I\Dropzone\Factory $dropzone_factory,
39 protected I\Popover\Factory $popover_factory,
40 protected I\Divider\Factory $divider_factory,
41 protected I\Link\Factory $link_factory,
42 protected I\Dropdown\Factory $dropdown_factory,
43 protected I\Item\Factory $item_factory,
44 protected I\ViewControl\Factory $viewcontrol_factory,
45 protected I\Chart\Factory $chart_factory,
46 protected I\Input\Factory $input_factory,
47 protected I\Table\Factory $table_factory,
48 protected I\MessageBox\Factory $messagebox_factory,
49 protected I\Card\Factory $card_factory,
50 protected I\Layout\Factory $layout_factory,
51 protected I\MainControls\Factory $maincontrols_factory,
52 protected I\Tree\Factory $tree_factory,
53 protected I\Menu\Factory $menu_factory,
54 protected I\Symbol\Factory $symbol_factory,
55 protected I\Toast\Factory $toast_factory,
56 protected I\Legacy\Factory $legacy_factory,
57 protected I\launcher\Factory $launcher_factory,
58 protected I\Entity\Factory $entity_factory,
59 protected I\Prompt\Factory $prompt_factory,
60 protected I\Navigation\Factory $navigation_factory,
61 protected I\Transfer\Factory $transfer_factory,
62 ) {
63 }
64
65 public function counter(): I\Counter\Factory
66 {
67 return $this->counter_factory;
68 }
69
70 public function button(): I\Button\Factory
71 {
72 return $this->button_factory;
73 }
74
75 public function card(): I\Card\Factory
76 {
77 return $this->card_factory;
78 }
79
80 public function deck(array $cards): I\Deck\Deck
81 {
82 return new I\Deck\Deck($cards, C\Deck\Deck::SIZE_S);
83 }
84
85 public function listing(): I\Listing\Factory
86 {
87 return $this->listing_factory;
88 }
89
90 public function image(): I\Image\Factory
91 {
92 return $this->image_factory;
93 }
94
95 public function player(): I\Player\Factory
96 {
97 return $this->player_factory;
98 }
99
100 public function legacy(): I\Legacy\Factory
101 {
102 return $this->legacy_factory;
103 }
104
105 public function panel(): I\Panel\Factory
106 {
107 return $this->panel_factory;
108 }
109
110 public function modal(): I\Modal\Factory
111 {
112 return $this->modal_factory;
113 }
114
115 public function progress(): I\Progress\Factory
116 {
117 return $this->progress_factory;
118 }
119
120 public function dropzone(): I\Dropzone\Factory
121 {
122 return $this->dropzone_factory;
123 }
124
125 public function popover(): I\Popover\Factory
126 {
127 return $this->popover_factory;
128 }
129
130 public function divider(): I\Divider\Factory
131 {
132 return $this->divider_factory;
133 }
134
135 public function link(): I\Link\Factory
136 {
137 return $this->link_factory;
138 }
139
140 public function dropdown(): I\Dropdown\Factory
141 {
142 return $this->dropdown_factory;
143 }
144
145 public function item(): I\Item\Factory
146 {
147 return $this->item_factory;
148 }
149
150 public function viewControl(): I\ViewControl\Factory
151 {
152 return $this->viewcontrol_factory;
153 }
154
155 public function breadcrumbs(array $crumbs): I\Breadcrumbs\Breadcrumbs
156 {
157 return new Component\Breadcrumbs\Breadcrumbs($crumbs);
158 }
159
160 public function chart(): I\Chart\Factory
161 {
162 return $this->chart_factory;
163 }
164
165 public function input(): I\Input\Factory
166 {
167 return $this->input_factory;
168 }
169
170 public function table(): I\Table\Factory
171 {
172 return $this->table_factory;
173 }
174
175 public function messageBox(): I\MessageBox\Factory
176 {
177 return $this->messagebox_factory;
178 }
179
180 public function layout(): I\Layout\Factory
181 {
182 return $this->layout_factory;
183 }
184
185 public function mainControls(): I\MainControls\Factory
186 {
187 return $this->maincontrols_factory;
188 }
189
190 public function tree(): I\Tree\Factory
191 {
192 return $this->tree_factory;
193 }
194
195 public function menu(): I\Menu\Factory
196 {
197 return $this->menu_factory;
198 }
199
200 public function symbol(): I\Symbol\Factory
201 {
202 return $this->symbol_factory;
203 }
204
205 public function toast(): I\Toast\Factory
206 {
207 return $this->toast_factory;
208 }
209
210 public function helpTopics(string ...$topics): array
211 {
212 return array_map(
213 fn($t) => new Help\Topic($t),
214 $topics
215 );
216 }
217
218 public function launcher(): I\Launcher\Factory
219 {
220 return $this->launcher_factory;
221 }
222
223 public function entity(): I\Entity\Factory
224 {
225 return $this->entity_factory;
226 }
227
228 public function prompt(): I\Prompt\Factory
229 {
230 return $this->prompt_factory;
231 }
232
233 public function navigation(): I\Navigation\Factory
234 {
235 return $this->navigation_factory;
236 }
237
238 public function transfer(): I\Transfer\Factory
239 {
240 return $this->transfer_factory;
241 }
242}
This is just a class that marks a string as a help topic.
Definition: Topic.php:27
__construct(protected I\Counter\Factory $counter_factory, protected I\Button\Factory $button_factory, protected I\Listing\Factory $listing_factory, protected I\Image\Factory $image_factory, protected I\Player\Factory $player_factory, protected I\Panel\Factory $panel_factory, protected I\Modal\Factory $modal_factory, protected I\Progress\Factory $progress_factory, protected I\Dropzone\Factory $dropzone_factory, protected I\Popover\Factory $popover_factory, protected I\Divider\Factory $divider_factory, protected I\Link\Factory $link_factory, protected I\Dropdown\Factory $dropdown_factory, protected I\Item\Factory $item_factory, protected I\ViewControl\Factory $viewcontrol_factory, protected I\Chart\Factory $chart_factory, protected I\Input\Factory $input_factory, protected I\Table\Factory $table_factory, protected I\MessageBox\Factory $messagebox_factory, protected I\Card\Factory $card_factory, protected I\Layout\Factory $layout_factory, protected I\MainControls\Factory $maincontrols_factory, protected I\Tree\Factory $tree_factory, protected I\Menu\Factory $menu_factory, protected I\Symbol\Factory $symbol_factory, protected I\Toast\Factory $toast_factory, protected I\Legacy\Factory $legacy_factory, protected I\launcher\Factory $launcher_factory, protected I\Entity\Factory $entity_factory, protected I\Prompt\Factory $prompt_factory, protected I\Navigation\Factory $navigation_factory, protected I\Transfer\Factory $transfer_factory,)
Definition: Factory.php:29
helpTopics(string ... $topics)
Definition: Factory.php:210
This describes a symbol.
Definition: Symbol.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21