@@ 19-31 (lines=13) @@ | ||
16 | ||
17 | public $component_type = 'checkbox'; |
|
18 | ||
19 | public function default_model() |
|
20 | { |
|
21 | return array( |
|
22 | 'name' => '', |
|
23 | 'id' => '', |
|
24 | 'disabled' => false, |
|
25 | 'required' => false, |
|
26 | 'readonly' => false, |
|
27 | 'data' => array(), |
|
28 | 'default' => array(), |
|
29 | 'show' => null |
|
30 | ); |
|
31 | } |
|
32 | ||
33 | public function required_arguments() |
|
34 | { |
@@ 16-27 (lines=12) @@ | ||
13 | { |
|
14 | public $component_type = 'switch'; |
|
15 | ||
16 | public function default_model() |
|
17 | { |
|
18 | return array( |
|
19 | 'name' => '', |
|
20 | 'id' => '', |
|
21 | 'disabled' => false, |
|
22 | 'readonly' => false, |
|
23 | 'default' => 'off', |
|
24 | 'filter' => array( $this, 'filter' ), |
|
25 | 'show' => null |
|
26 | ); |
|
27 | } |
|
28 | ||
29 | public function required_arguments() |
|
30 | { |