1 | <?php |
||
5 | class ElSwitch extends NamedElement |
||
6 | { |
||
7 | protected $type = 'elswitch'; |
||
8 | |||
9 | protected $texts = ['ON', 'OFF']; |
||
10 | protected $values = ['yes', 'no']; |
||
11 | protected $colors = []; |
||
12 | protected $iconClasses = []; |
||
13 | |||
14 | protected $width = 40; |
||
15 | |||
16 | public function getWidth() |
||
20 | |||
21 | public function setWidth($value) |
||
27 | |||
28 | public function getValues() |
||
32 | |||
33 | /** |
||
34 | * @param $active |
||
35 | * @param $inactive |
||
36 | * |
||
37 | * @return ElSwitch |
||
38 | */ |
||
39 | public function setValues($active, $inactive) |
||
45 | |||
46 | public function getTexts() |
||
50 | |||
51 | /** |
||
52 | * @param $active |
||
53 | * @param $inactive |
||
54 | * |
||
55 | * @return ElSwitch |
||
56 | */ |
||
57 | public function setTexts($active, $inactive) |
||
63 | |||
64 | public function getColors() |
||
68 | |||
69 | /** |
||
70 | * @param $active |
||
71 | * @param $inactive |
||
72 | * |
||
73 | * @return ElSwitch |
||
74 | */ |
||
75 | public function setColors($active, $inactive) |
||
81 | |||
82 | public function getIconClasses() |
||
86 | |||
87 | public function setIconClasses($active, $inactive) |
||
93 | |||
94 | public function toArray() |
||
104 | } |
||
105 |