@@ 76-82 (lines=7) @@ | ||
73 | }, $index,$attributes); |
|
74 | } |
|
75 | ||
76 | public function fieldAsInput($index,$attributes=NULL){ |
|
77 | return $this->_fieldAs(function($id,$name,$value,$caption){ |
|
78 | $input= new HtmlFormInput($id,$caption,"text",$value); |
|
79 | $input->setName($name); |
|
80 | return $input; |
|
81 | }, $index,$attributes); |
|
82 | } |
|
83 | ||
84 | public function fieldAsCheckbox($index,$attributes=NULL){ |
|
85 | return $this->_fieldAs(function($id,$name,$value,$caption){ |
@@ 123-129 (lines=7) @@ | ||
120 | }, $index,$attributes,"radio"); |
|
121 | } |
|
122 | ||
123 | public function fieldAsInput($index,$attributes=NULL){ |
|
124 | return $this->_fieldAs(function($id,$name,$value){ |
|
125 | $input= new HtmlFormInput($id,"","text",$value); |
|
126 | $input->setName($name); |
|
127 | return $input; |
|
128 | }, $index,$attributes,"input"); |
|
129 | } |
|
130 | ||
131 | public function fieldAsTextarea($index,$attributes=NULL){ |
|
132 | return $this->_fieldAs(function($id,$name,$value){ |
|
@@ 131-137 (lines=7) @@ | ||
128 | }, $index,$attributes,"input"); |
|
129 | } |
|
130 | ||
131 | public function fieldAsTextarea($index,$attributes=NULL){ |
|
132 | return $this->_fieldAs(function($id,$name,$value){ |
|
133 | $textarea=new HtmlFormTextarea($id,null,$value); |
|
134 | $textarea->setName($name); |
|
135 | return $textarea; |
|
136 | }, $index,$attributes,"textarea"); |
|
137 | } |
|
138 | ||
139 | public function fieldAsHidden($index,$attributes=NULL){ |
|
140 | if(!\is_array($attributes)){ |