/** * {@inheritDoc} */ public function getOptions($request) { $options = parent::getOptions($request); foreach ($this->container->get('countryService')->getCountries() as $country) { $options[$country->getId()] = $country->getName(); } return $options; }
/** * {@inheritDoc} */ public function getOptions($request) { $options = parent::getOptions($request); foreach ($this->container->get('manufacturerService')->getManufacturers($request->getSelectedLanguage()->getId()) as $manufacturer) { $options[$manufacturer->getId()] = $manufacturer->getName(); } return $options; }
/** * {@inheritDoc} */ public function getOptions($request) { $options = parent::getOptions($request); // @todo remove dependency on language and request $languageId = null != $request ? $request->getSelectedLanguage()->getId() : 1; foreach ($this->container->get('couponService')->getCoupons($languageId) as $coupon) { $options[$coupon->getId()] = $coupon->getName(); } return $options; }
/** * {@inheritDoc} */ public function getOptions($request) { $options = parent::getOptions($request); // @todo remove dependency on language and request $languageId = null != $request ? $request->getSelectedLanguage()->getId() : 1; foreach ($this->container->get('orderService')->getOrderStatusList($languageId) as $idp) { $options[$idp->getOrderStatusId()] = $idp->getName() . ($this->showKey ? ' (' . $idp->getOrderStatusId() . ')' : ''); } return $options; }
/** * {@inheritDoc} */ public function getOptions($request) { $options = parent::getOptions($request); // try to find a useful countryId, defaulting to store country Id $countryId = Runtime::getSettings()->get('storeCountry'); //XXX: where else to look ?? foreach ($this->container->get('countryService')->getZonesForCountryId($countryId) as $zone) { $options[$zone->getId()] = $zone->getName(); } return $options; }
/** * {@inheritDoc} */ public function getOptions($request) { return array_merge(parent::getOptions($request), self::getEditorMap()); }