1 <?php
2 /**
3 * UIX Control
4 *
5 * @package controls
6 * @author David Cramer
7 * @license GPL-2.0+
8 * @link
9 * @copyright 2016 David Cramer
10 */
11 namespace uix\ui\control;
12
13 /**
14 * Checkbox Fields group
15 *
16 * @since 1.0.0
17 */
18 class checkbox extends \uix\ui\control\radio{
19
20 /**
21 * The type of object
22 *
23 * @since 1.0.0
24 * @access public
25 * @var string
26 */
27 public $type = 'checkbox';
28
29
30 /**
31 * Gets the attributes for the control.
32 *
33 * @since 1.0.0
34 * @access public
35 */
36 public function set_attributes() {
37 parent::set_attributes();
38
39 $this->attributes['name'] .= '[]';
40
41 }
42
43 }