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