public function __construct(\Product\Service\ProductAttributeService $service, \Zend\Mvc\I18n\Translator $translator, $is_user_defined = true) { parent::__construct(); $this->service = $service; $this->translator = $translator; $this->is_user_defined = $is_user_defined; }
/** * __construct * * @param string $name * @param array $options */ public function __construct($name = null, $options = []) { if (null === $name) { $name = 'locale-select'; } parent::__construct($name, $options); }
/** * @param string[] $selectableLocales * @param string $defaultLocale */ public function __construct(array $selectableLocales, $defaultLocale) { parent::__construct(); $valueOptions = []; foreach ($selectableLocales as $locale) { $valueOptions[$locale] = sprintf('%s (%s)', Locale::getDisplayLanguage($locale), Locale::getDisplayRegion($locale)); } $collator = new Collator(Locale::getDefault()); $collator->asort($valueOptions); $this->setValueOptions($valueOptions); $this->setValue($defaultLocale); }
public function __construct(\Product\Service\ProductTypeService $service, \Zend\Mvc\I18n\Translator $translator) { parent::__construct(); $this->service = $service; $this->translator = $translator; }
public function __construct(LegalformService $legalformService, \Zend\Mvc\I18n\Translator $translator) { parent::__construct(); $this->legalform = $legalformService; $this->translator = $translator; }
/** * @param ClientRepository $clientRepository */ public function __construct(ClientRepository $clientRepository) { $this->clientRepository = $clientRepository; parent::__construct(); }
public function __construct() { parent::__construct(); $this->setValueOptions(['' => 'None', 'hours' => 'Hours', 'days' => 'Days']); }
public function __construct(ContactTypeService $contacttypeService, \Zend\Mvc\I18n\Translator $translator) { parent::__construct(); $this->contacttype = $contacttypeService; $this->translator = $translator; }
public function __construct(\Zend\Mvc\I18n\Translator $translator) { $this->translator = $translator; parent::__construct(); }
public function __construct(CustomerGroupService $service, \Zend\Mvc\I18n\Translator $translator) { parent::__construct(); $this->service = $service; $this->translator = $translator; }
public function __construct($name = null, $options = []) { $this->attributes['id'] = uniqid(); parent::__construct($name, $options); }
public function __construct(PageCategoryService $pagecategoryService, \Zend\Mvc\I18n\Translator $translator) { parent::__construct(); $this->pagecategoryService = $pagecategoryService; $this->translator = $translator; }
public function __construct($serviceFinder = null) { parent::__construct('select'); //$this->languagesServiceFinder = $serviceFinder; $this->setValueOptions(['id' => 2]); }
/** * Construct the object. * * @param ServiceLocatorInterface $serviceLocator * @param string $name Optional name for the form (and CSRF name) * @param array $options Optional options for the form */ public function __construct(ServiceLocatorInterface $serviceLocator, $name = null, $options = []) { $this->setServiceLocator($serviceLocator); parent::__construct($name, $options); }
public function __construct(ProfileCategoryService $eventcategoryService, \Zend\Mvc\I18n\Translator $translator) { parent::__construct(); $this->eventcategoryService = $eventcategoryService; $this->translator = $translator; }
public function __construct(LanguagesService $languagesService, \Zend\Mvc\I18n\Translator $translator) { parent::__construct(); $this->languagesService = $languagesService; $this->translator = $translator; }
public function __construct(ProfileService $profileService, \Zend\Mvc\I18n\Translator $translator) { parent::__construct(); $this->profileService = $profileService; $this->translator = $translator; }
public function __construct(RegionService $regionService, \Zend\Mvc\I18n\Translator $translator) { parent::__construct(); $this->regionService = $regionService; $this->translator = $translator; }
public function __construct(\ProductCategory\Service\CategoryService $service, \Zend\Mvc\I18n\Translator $translator) { $this->service = $service; $this->translator = $translator; parent::__construct(); }
/** * @param AddressService $addressService * @param CountryCodeFormatter $countryCodeFormatter */ public function __construct(AddressService $addressService, CountryCodeFormatter $countryCodeFormatter) { $this->addressService = $addressService; $this->countryCodeFormatter = $countryCodeFormatter; parent::__construct(null, []); }
public function __construct(StatusService $statusService, \Zend\Mvc\I18n\Translator $translator) { parent::__construct(); $this->status = $statusService; $this->translator = $translator; }
/** * @param CurrencyCodeFormatter $currencyCodeFormatter */ public function __construct(CurrencyCodeFormatter $currencyCodeFormatter) { $this->currencyCodeFormatter = $currencyCodeFormatter; parent::__construct(); }