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;
 }
Beispiel #2
0
 /**
  * __construct
  *
  * @param string $name
  * @param array $options
  */
 public function __construct($name = null, $options = [])
 {
     if (null === $name) {
         $name = 'locale-select';
     }
     parent::__construct($name, $options);
 }
Beispiel #3
0
 /**
  * @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);
 }
Beispiel #4
0
 public function __construct(\Product\Service\ProductTypeService $service, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->service = $service;
     $this->translator = $translator;
 }
Beispiel #5
0
 public function __construct(LegalformService $legalformService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->legalform = $legalformService;
     $this->translator = $translator;
 }
Beispiel #6
0
 /**
  * @param ClientRepository $clientRepository
  */
 public function __construct(ClientRepository $clientRepository)
 {
     $this->clientRepository = $clientRepository;
     parent::__construct();
 }
Beispiel #7
0
 public function __construct()
 {
     parent::__construct();
     $this->setValueOptions(['' => 'None', 'hours' => 'Hours', 'days' => 'Days']);
 }
Beispiel #8
0
 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;
 }
Beispiel #11
0
 public function __construct($name = null, $options = [])
 {
     $this->attributes['id'] = uniqid();
     parent::__construct($name, $options);
 }
Beispiel #12
0
 public function __construct(PageCategoryService $pagecategoryService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->pagecategoryService = $pagecategoryService;
     $this->translator = $translator;
 }
Beispiel #13
0
 public function __construct($serviceFinder = null)
 {
     parent::__construct('select');
     //$this->languagesServiceFinder = $serviceFinder;
     $this->setValueOptions(['id' => 2]);
 }
Beispiel #14
0
 /**
  * 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;
 }
Beispiel #16
0
 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;
 }
Beispiel #18
0
 public function __construct(RegionService $regionService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->regionService = $regionService;
     $this->translator = $translator;
 }
Beispiel #19
0
 public function __construct(\ProductCategory\Service\CategoryService $service, \Zend\Mvc\I18n\Translator $translator)
 {
     $this->service = $service;
     $this->translator = $translator;
     parent::__construct();
 }
Beispiel #20
0
 /**
  * @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;
 }
Beispiel #22
0
 /**
  * @param CurrencyCodeFormatter $currencyCodeFormatter
  */
 public function __construct(CurrencyCodeFormatter $currencyCodeFormatter)
 {
     $this->currencyCodeFormatter = $currencyCodeFormatter;
     parent::__construct();
 }