static function getCompanies() { $options = parent::getCompanies(); if (sizeof($options) > 1) { $options[0] = JHtml::_('select.option', 0, 'All Companies'); } return $options; }
public function getOptions() { # The options available are based on what type was selected $options = array(); return array_merge(parent::getOptions(), JFormFieldSelectCompany::getCompanies()); }
static function getCompanies($type) { $options = parent::getCompanies(); $options[0] = JHtml::_('select.option', 0, 'All Companies'); return $options; }