44
55use Ajax \semantic \html \base \constants \CheckboxType ;
66use Ajax \semantic \html \modules \checkbox \AbstractCheckbox ;
7+ use Ajax \semantic \html \collections \form \HtmlFormField ;
78
89/**
910 * @author jc
@@ -22,7 +23,7 @@ public function setType($checkboxType) {
2223 * Attach $this to $selector and fire $action
2324 * @param string $selector jquery selector of the associated element
2425 * @param string $action action to execute : check, uncheck or NULL for toggle
25- * @return \Ajax\semantic\html\collections\form\AbstractHtmlFormRadioCheckbox
26+ * @return HtmlFormField
2627 */
2728 public function attachEvent ($ selector , $ action =NULL ) {
2829 return $ this ->getHtmlCk ()->attachEvent ($ selector , $ action );
@@ -31,7 +32,7 @@ public function attachEvent($selector, $action=NULL) {
3132 /**
3233 * Attach $this to an array of $action=>$selector
3334 * @param array $events associative array of events to attach ex : ["#bt-toggle","check"=>"#bt-check","uncheck"=>"#bt-uncheck"]
34- * @return \Ajax\semantic\html\collections\form\AbstractHtmlFormRadioCheckbox
35+ * @return HtmlFormField
3536 */
3637 public function attachEvents ($ events =array ()) {
3738 return $ this ->getHtmlCk ()->attachEvents ($ events );
@@ -55,7 +56,7 @@ public function getDataField(){
5556 /**
5657 * Check the checkbox
5758 * @param boolean $value
58- * @return \Ajax\semantic\html\collections\form\traits\CheckboxTrait
59+ * @return HtmlFormField
5960 */
6061 public function setChecked ($ value =true ){
6162 if ($ value ===true ){
0 commit comments