Пример #1
0
 /**
  * Get default options for selector
  *
  * @return array
  */
 protected function getDefaultOptions()
 {
     $list = array();
     $serviceOptions = \XLite\Module\CDev\AustraliaPost\Model\Shipping\Processor\AustraliaPost::getAuspostServiceOptions();
     foreach ($serviceOptions as $code => $name) {
         $list[$code] = $name;
     }
     return $list;
 }
Пример #2
0
 /**
  * Get service options array (for selector on Auspost configuration page)
  *
  * @return array
  */
 public function getAuspostServiceOptions()
 {
     return \XLite\Module\CDev\AustraliaPost\Model\Shipping\Processor\AustraliaPost::getAuspostServiceOptions();
 }