| @@ 93-100 (lines=8) @@ | ||
| 90 | }, $index,$attributes,"radio"); |
|
| 91 | } |
|
| 92 | ||
| 93 | public function fieldAsInput($index,$attributes=NULL){ |
|
| 94 | return $this->_fieldAs(function($id,$name,$value){ |
|
| 95 | $input= new HtmlInput($id,"text",$value); |
|
| 96 | //TODO check getField |
|
| 97 | $input->setName($name); |
|
| 98 | return $input; |
|
| 99 | }, $index,$attributes,"input"); |
|
| 100 | } |
|
| 101 | ||
| 102 | public function fieldAsHidden($index,$attributes=NULL){ |
|
| 103 | if(\is_array($attributes)===false){ |
|
| @@ 89-95 (lines=7) @@ | ||
| 86 | }, $index,$attributes); |
|
| 87 | } |
|
| 88 | ||
| 89 | public function fieldAsInput($index,$attributes=NULL){ |
|
| 90 | return $this->_fieldAs(function($id,$name,$value,$caption){ |
|
| 91 | $input= new HtmlFormInput($id,$caption,"text",$value); |
|
| 92 | $input->setName($name); |
|
| 93 | return $input; |
|
| 94 | }, $index,$attributes); |
|
| 95 | } |
|
| 96 | ||
| 97 | public function fieldAsCheckbox($index,$attributes=NULL){ |
|
| 98 | return $this->_fieldAs(function($id,$name,$value,$caption){ |
|