1 | <?php |
||
8 | class Component_switch |
||
9 | extends AbstractComponent |
||
|
|||
10 | implements ValueComponentInterface, |
||
11 | DisableableComponentInterface, |
||
12 | FilterableComponentInterface |
||
13 | { |
||
14 | public $component_type = 'switch'; |
||
15 | |||
16 | public function default_model() |
||
28 | |||
29 | public function required_arguments() |
||
33 | |||
34 | public function get_template_path() |
||
38 | |||
39 | /** |
||
40 | * This filter is needed when the form is submitted without $.amarkalUIForm, |
||
41 | * since the value of the checkbox becomes NULL when it is unchecked. When using |
||
42 | * $.amarkalUIForm to submit the form, the component's getValue/setValue will |
||
43 | * handle this. |
||
44 | * |
||
45 | * @param [string] $v |
||
46 | * @return void |
||
47 | */ |
||
48 | public function filter($v) |
||
53 | } |