Пример #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;
 }