1 | <?php |
||
8 | class HtmlFormDropdown extends HtmlFormField { |
||
9 | |||
10 | public function __construct($identifier,$items=array(), $label=NULL,$value=NULL,$multiple=false,$associative=true) { |
||
11 | parent::__construct("field-".$identifier, (new HtmlDropdown("dropdown-".$identifier,$value,$items,$associative))->asSelect($identifier,$multiple), $label); |
||
12 | } |
||
13 | |||
14 | public function setItems($items){ |
||
20 | public static function multipleDropdown($identifier,$items=array(), $label=NULL,$value=NULL,$associative=true){ |
||
21 | return new HtmlFormDropdown($identifier,$items,$label,$value,true,$associative); |
||
22 | } |
||
23 | |||
24 | public function getDataField(){ |
||
27 | public function asSelect($name=NULL,$multiple=false,$selection=true){ |
||
28 | $this->getField()->asSelect($name,$multiple,$selection); |
||
29 | return $this; |
||
31 | } |