| @@ 121-128 (lines=8) @@ | ||
| 118 | }, $index,$attributes,"radio"); |
|
| 119 | } |
|
| 120 | ||
| 121 | public function fieldAsInput($index,$attributes=NULL){ |
|
| 122 | return $this->_fieldAs(function($id,$name,$value){ |
|
| 123 | $input= new HtmlInput($id,"text",$value); |
|
| 124 | //TODO check getField |
|
| 125 | $input->setName($name); |
|
| 126 | return $input; |
|
| 127 | }, $index,$attributes,"input"); |
|
| 128 | } |
|
| 129 | ||
| 130 | public function fieldAsHidden($index,$attributes=NULL){ |
|
| 131 | if(\is_array($attributes)===false){ |
|
| @@ 75-81 (lines=7) @@ | ||
| 72 | }, $index,$attributes); |
|
| 73 | } |
|
| 74 | ||
| 75 | public function fieldAsInput($index,$attributes=NULL){ |
|
| 76 | return $this->_fieldAs(function($id,$name,$value,$caption){ |
|
| 77 | $input= new HtmlFormInput($id,$caption,"text",$value); |
|
| 78 | $input->setName($name); |
|
| 79 | return $input; |
|
| 80 | }, $index,$attributes); |
|
| 81 | } |
|
| 82 | ||
| 83 | public function fieldAsCheckbox($index,$attributes=NULL){ |
|
| 84 | return $this->_fieldAs(function($id,$name,$value,$caption){ |
|