ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 ) {
62 }
63
64 public function counter(): I\Counter\Factory
65 {
66 return $this->counter_factory;
67 }
68
69 public function button(): I\Button\Factory
70 {
71 return $this->button_factory;
72 }
73
74 public function card(): I\Card\Factory
75 {
76 return $this->card_factory;
77 }
78
79 public function deck(array $cards): I\Deck\Deck
80 {
81 return new I\Deck\Deck($cards, C\Deck\Deck::SIZE_S);
82 }
83
84 public function listing(): I\Listing\Factory
85 {
86 return $this->listing_factory;
87 }
88
89 public function image(): I\Image\Factory
90 {
91 return $this->image_factory;
92 }
93
94 public function player(): I\Player\Factory
95 {
96 return $this->player_factory;
97 }
98
99 public function legacy(): I\Legacy\Factory
100 {
101 return $this->legacy_factory;
102 }
103
104 public function panel(): I\Panel\Factory
105 {
106 return $this->panel_factory;
107 }
108
109 public function modal(): I\Modal\Factory
110 {
111 return $this->modal_factory;
112 }
113
114 public function progress(): I\Progress\Factory
115 {
116 return $this->progress_factory;
117 }
118
119 public function dropzone(): I\Dropzone\Factory
120 {
121 return $this->dropzone_factory;
122 }
123
124 public function popover(): I\Popover\Factory
125 {
126 return $this->popover_factory;
127 }
128
129 public function divider(): I\Divider\Factory
130 {
131 return $this->divider_factory;
132 }
133
134 public function link(): I\Link\Factory
135 {
136 return $this->link_factory;
137 }
138
139 public function dropdown(): I\Dropdown\Factory
140 {
141 return $this->dropdown_factory;
142 }
143
144 public function item(): I\Item\Factory
145 {
146 return $this->item_factory;
147 }
148
149 public function viewControl(): I\ViewControl\Factory
150 {
151 return $this->viewcontrol_factory;
152 }
153
154 public function breadcrumbs(array $crumbs): I\Breadcrumbs\Breadcrumbs
155 {
156 return new Component\Breadcrumbs\Breadcrumbs($crumbs);
157 }
158
159 public function chart(): I\Chart\Factory
160 {
161 return $this->chart_factory;
162 }
163
164 public function input(): I\Input\Factory
165 {
166 return $this->input_factory;
167 }
168
169 public function table(): I\Table\Factory
170 {
171 return $this->table_factory;
172 }
173
174 public function messageBox(): I\MessageBox\Factory
175 {
176 return $this->messagebox_factory;
177 }
178
179 public function layout(): I\Layout\Factory
180 {
181 return $this->layout_factory;
182 }
183
184 public function mainControls(): I\MainControls\Factory
185 {
186 return $this->maincontrols_factory;
187 }
188
189 public function tree(): I\Tree\Factory
190 {
191 return $this->tree_factory;
192 }
193
194 public function menu(): I\Menu\Factory
195 {
196 return $this->menu_factory;
197 }
198
199 public function symbol(): I\Symbol\Factory
200 {
201 return $this->symbol_factory;
202 }
203
204 public function toast(): I\Toast\Factory
205 {
206 return $this->toast_factory;
207 }
208
209 public function helpTopics(string ...$topics): array
210 {
211 return array_map(
212 fn($t) => new Help\Topic($t),
213 $topics
214 );
215 }
216
217 public function launcher(): I\Launcher\Factory
218 {
219 return $this->launcher_factory;
220 }
221
222 public function entity(): I\Entity\Factory
223 {
224 return $this->entity_factory;
225 }
226
227 public function prompt(): I\Prompt\Factory
228 {
229 return $this->prompt_factory;
230 }
231
232 public function navigation(): I\Navigation\Factory
233 {
234 return $this->navigation_factory;
235 }
236
237}
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,)
Definition: Factory.php:29
helpTopics(string ... $topics)
Definition: Factory.php:209
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