1 | <?php |
||
8 | class FormElementCheckbox extends FormElement |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * Constructor |
||
13 | * |
||
14 | * @param string $name of the element. |
||
15 | * @param array $attributes to set to the element. Default is an empty array. |
||
16 | */ |
||
17 | public function __construct($name, $attributes = []) |
||
33 | |||
34 | |||
35 | |||
36 | /** |
||
37 | * Get the value of the form element. |
||
38 | * |
||
39 | * @return array the checked values of the form element. |
||
40 | */ |
||
41 | public function value() |
||
45 | |||
46 | |||
47 | |||
48 | /** |
||
49 | * Get HTML code for a element. |
||
50 | * |
||
51 | * @return string HTML code for the element. |
||
52 | */ |
||
53 | public function getHTML() |
||
67 | } |
||
68 |