public function __construct($name, $options, $label = '') { parent::__construct('dropdown', $name, $label); $this->rmattr('type'); $this->optGroups[''] = new OptGroup(null, $options); $this->val(''); }