1 | <?php |
||
12 | abstract class AbstractHtmlFormRadioCheckbox extends HtmlFormField { |
||
13 | protected $_input; |
||
14 | protected $_params=array(); |
||
15 | |||
16 | public function __construct($identifier, $name=NULL,$label=NULL,$value=NULL,$type=NULL) { |
||
28 | |||
29 | public function setType($checkboxType){ |
||
32 | |||
33 | public function getInput() { |
||
36 | |||
37 | public function setInput($_input) { |
||
41 | |||
42 | public function setReadonly(){ |
||
46 | |||
47 | /** |
||
48 | * Attach $this to $selector and fire $action |
||
49 | * @param string $selector jquery selector of the associated element |
||
50 | * @param string $action action to execute : check, uncheck or NULL for toggle |
||
51 | * @return \Ajax\semantic\html\collections\form\AbstractHtmlFormRadioCheckbox |
||
52 | */ |
||
53 | public function attachEvent($selector,$action=NULL){ |
||
62 | |||
63 | /** |
||
64 | * Attach $this to an array of $action=>$selector |
||
65 | * @param array $events associative array of events to attach ex : ["#bt-toggle","check"=>"#bt-check","uncheck"=>"#bt-uncheck"] |
||
66 | * @return \Ajax\semantic\html\collections\form\AbstractHtmlFormRadioCheckbox |
||
67 | */ |
||
68 | public function attachEvents($events=array()){ |
||
76 | |||
77 | } |