Example #1
0
 public function toOptionArray($noEmpty = false)
 {
     $options = parent::toOptionArray($noEmpty);
     if (!$noEmpty) {
         if ($options) {
             $options[0]['label'] = Mage::helper('tax')->__('None');
         } else {
             $options = array(array('value' => '', 'label' => $this->helper('tax')->__('None')));
         }
     }
     return $options;
 }
Example #2
0
 public function toOptionArray($isMultiselect = false)
 {
     $options = parent::toOptionArray($isMultiselect);
     if (self::getAllAllowedCountries()) {
         foreach ($options as $key => $option) {
             if ($option['value'] && !in_array($option['value'], self::getAllAllowedCountries())) {
                 unset($options[$key]);
             }
         }
     }
     return $options;
 }
Example #3
0
 public function toOptionArray($isMultiselect = false)
 {
     return parent::toOptionArray(true);
 }