/** * 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; }
/** * 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(); }