Total Complexity | 2 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class Checkboxes extends FieldWithOptions |
||
6 | { |
||
7 | public $inline; |
||
8 | public $border; |
||
9 | public $min; |
||
10 | public $max; |
||
11 | |||
12 | public function __construct( |
||
13 | $name, |
||
14 | $label, |
||
15 | $renderForBlocks = false, |
||
16 | $renderForModal = false, |
||
17 | $options = [], |
||
18 | $unpack = false, |
||
19 | $columns = 0, |
||
20 | $searchable = false, |
||
21 | $note = null, |
||
22 | $placeholder = null, |
||
23 | $disabled = false, |
||
24 | $addNew = false, |
||
25 | $moduleName = null, |
||
26 | $storeUrl = null, |
||
27 | $fieldsInModal = false, |
||
28 | $default = false, |
||
29 | $min = null, |
||
30 | $max = null, |
||
31 | $inline = false, |
||
32 | $border = false |
||
33 | ) { |
||
34 | parent::__construct( |
||
35 | $name, |
||
36 | $label, |
||
37 | $renderForBlocks, |
||
38 | $renderForModal, |
||
39 | $options, |
||
40 | $unpack, |
||
41 | $columns, |
||
42 | $searchable, |
||
43 | $note, |
||
44 | $placeholder, |
||
45 | $disabled, |
||
46 | $addNew, |
||
47 | $moduleName, |
||
48 | $storeUrl, |
||
49 | $default, |
||
50 | $fieldsInModal |
||
51 | ); |
||
52 | |||
53 | $this->inline = $inline; |
||
54 | $this->border = $border; |
||
55 | $this->min = $min; |
||
56 | $this->max = $max; |
||
57 | } |
||
58 | |||
59 | public function render() |
||
64 | ]); |
||
65 | } |
||
67 |