| @@ 147-153 (lines=7) @@ | ||
| 144 | }, $index,$attributes,"ck"); |
|
| 145 | } |
|
| 146 | ||
| 147 | public function fieldAsDropDown($index,$elements=[],$multiple=false,$attributes=NULL){ |
|
| 148 | return $this->_fieldAs(function($id,$name,$value) use($elements,$multiple){ |
|
| 149 | $dd=new HtmlDropdown($id,$value,$elements); |
|
| 150 | $dd->asSelect($name,$multiple); |
|
| 151 | return $dd; |
|
| 152 | }, $index,$attributes,"dd"); |
|
| 153 | } |
|
| 154 | } |
|
| @@ 89-95 (lines=7) @@ | ||
| 86 | }, $index,$attributes); |
|
| 87 | } |
|
| 88 | ||
| 89 | public function fieldAsDropDown($index,$elements=[],$multiple=false,$attributes=NULL){ |
|
| 90 | return $this->_fieldAs(function($id,$name,$value,$caption) use ($elements,$multiple){ |
|
| 91 | $dd=new HtmlFormDropdown($id,$elements,$caption,$value,$multiple); |
|
| 92 | $dd->setName($name); |
|
| 93 | return $dd; |
|
| 94 | }, $index,$attributes); |
|
| 95 | } |
|
| 96 | ||
| 97 | public function fieldAsMessage($index,$attributes=NULL){ |
|
| 98 | return $this->_fieldAs(function($id,$name,$value,$caption){ |
|