setQuery( $query ); $licenses = $db->loadObjectList(); $id = $this->form->getValue('id'); // id of current license $required = ((string) $this->element['required'] == 'true') ? TRUE : FALSE; array_unshift($licenses, HTMLHelper::_('select.option', '', '- '.Text::_('COM_PHOCADOWNLOAD_SELECT_LICENSE').' -', 'value', 'text')); return HTMLHelper::_('select.genericlist', $licenses, $this->name, 'class="form-select"', 'value', 'text', $this->value, $this->id ); } } ?>