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
27
28class Factory implements B\Factory
29{
30 public function standard(string $label, $action): Standard
31 {
32 return new Standard($label, $action);
33 }
34
35 public function primary(string $label, $action): Primary
36 {
37 return new Primary($label, $action);
38 }
39
40 public function close(): Close
41 {
42 return new Close();
43 }
44
45 public function minimize(): Minimize
46 {
47 return new Minimize();
48 }
49
50 public function tag(string $label, $action): Tag
51 {
52 return new Tag($label, $action);
53 }
54
55 public function shy(string $label, $action): Shy
56 {
57 return new Shy($label, $action);
58 }
59
60 public function month(string $default): Month
61 {
62 return new Month($default);
63 }
64
65 public function bulky(Symbol $symbol, string $label, string $action): Bulky
66 {
67 return (new Bulky($label, $action))->withSymbol($symbol);
68 }
69
70 public function toggle(
71 string $label,
72 $on_action,
73 $off_action,
74 bool $is_on = false,
75 ?Signal $click_signal = null
76 ): Toggle {
77 return new Toggle($label, $on_action, $off_action, $is_on, $click_signal);
78 }
79}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
bulky(Symbol $symbol, string $label, string $action)
Definition: Factory.php:65
toggle(string $label, $on_action, $off_action, bool $is_on=false, ?Signal $click_signal=null)
Definition: Factory.php:70
This exception indicates that an UI component was accepted by the JF but is not backed by a real impl...
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bulky.php:21