1 | <?php |
||
15 | class UICheckBox extends \Asymptix\ui\UIComponent { |
||
16 | /** |
||
17 | * Default checkbox HTML template. |
||
18 | */ |
||
19 | const DEFAULT_TEMPLATE = "core/ui/templates/components/ui_checkbox.tpl.php"; |
||
20 | |||
21 | /** |
||
22 | * Makes the select field focused on page load (empty or 'autofocus', optional). |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $autofocus = ""; |
||
27 | |||
28 | /** |
||
29 | * Specifies that the option should be disabled when it first loads |
||
30 | * (empty or 'disabled', optional). |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $disabled = ""; |
||
35 | |||
36 | /** |
||
37 | * Defines one ore more forms the select field belongs to (optional). |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $form = ""; |
||
42 | |||
43 | /** |
||
44 | * Defines the value of the option to be sent to the server. |
||
45 | * |
||
46 | * @var string,integer |
||
47 | */ |
||
48 | protected $value = ""; |
||
49 | |||
50 | /** |
||
51 | * Indicates that the input element should be checked when it first loads. |
||
52 | * |
||
53 | * @var bool |
||
54 | */ |
||
55 | protected $checked = false; |
||
56 | |||
57 | /** |
||
58 | * Generate HTML of the list <input type="checkbox" ... /> element. |
||
59 | * |
||
60 | * @param array<string => string> $attributesList List of the component attributes. |
||
61 | * @param string $template Path to the components template file. |
||
62 | */ |
||
63 | public function __construct($attributesList, $template) { |
||
66 | } |
||
67 |