コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: LocaleSelect.php プロジェクト: coolms/common
 /**
  * __construct
  *
  * @param string $name
  * @param array $options
  */
 public function __construct($name = null, $options = [])
 {
     if (null === $name) {
         $name = 'locale-select';
     }
     parent::__construct($name, $options);
 }
コード例 #3
0
ファイル: LocaleSelect.php プロジェクト: DavidHavl/Ajasta
 /**
  * @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);
 }
コード例 #4
0
ファイル: Types.php プロジェクト: eotg1910/shineisp2
 public function __construct(\Product\Service\ProductTypeService $service, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->service = $service;
     $this->translator = $translator;
 }
コード例 #5
0
ファイル: Legalform.php プロジェクト: eotg1910/shineisp2
 public function __construct(LegalformService $legalformService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->legalform = $legalformService;
     $this->translator = $translator;
 }
コード例 #6
0
ファイル: ClientSelect.php プロジェクト: DavidHavl/Ajasta
 /**
  * @param ClientRepository $clientRepository
  */
 public function __construct(ClientRepository $clientRepository)
 {
     $this->clientRepository = $clientRepository;
     parent::__construct();
 }
コード例 #7
0
ファイル: UnitSelect.php プロジェクト: DavidHavl/Ajasta
 public function __construct()
 {
     parent::__construct();
     $this->setValueOptions(['' => 'None', 'hours' => 'Hours', 'days' => 'Days']);
 }
コード例 #8
0
ファイル: ContactType.php プロジェクト: eotg1910/shineisp2
 public function __construct(ContactTypeService $contacttypeService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->contacttype = $contacttypeService;
     $this->translator = $translator;
 }
コード例 #9
0
 public function __construct(\Zend\Mvc\I18n\Translator $translator)
 {
     $this->translator = $translator;
     parent::__construct();
 }
コード例 #10
0
 public function __construct(CustomerGroupService $service, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->service = $service;
     $this->translator = $translator;
 }
コード例 #11
0
ファイル: BsSelect.php プロジェクト: fagundes/zff-base
 public function __construct($name = null, $options = [])
 {
     $this->attributes['id'] = uniqid();
     parent::__construct($name, $options);
 }
コード例 #12
0
ファイル: PageCategories.php プロジェクト: eotg1910/shineisp2
 public function __construct(PageCategoryService $pagecategoryService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->pagecategoryService = $pagecategoryService;
     $this->translator = $translator;
 }
コード例 #13
0
ファイル: Select.php プロジェクト: sebaks/Translate
 public function __construct($serviceFinder = null)
 {
     parent::__construct('select');
     //$this->languagesServiceFinder = $serviceFinder;
     $this->setValueOptions(['id' => 2]);
 }
コード例 #14
0
ファイル: ResourceSelect.php プロジェクト: patrova/omeka-s
 /**
  * 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);
 }
コード例 #15
0
 public function __construct(ProfileCategoryService $eventcategoryService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->eventcategoryService = $eventcategoryService;
     $this->translator = $translator;
 }
コード例 #16
0
 public function __construct(LanguagesService $languagesService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->languagesService = $languagesService;
     $this->translator = $translator;
 }
コード例 #17
0
 public function __construct(ProfileService $profileService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->profileService = $profileService;
     $this->translator = $translator;
 }
コード例 #18
0
ファイル: Region.php プロジェクト: omusico/Base
 public function __construct(RegionService $regionService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->regionService = $regionService;
     $this->translator = $translator;
 }
コード例 #19
0
ファイル: Category.php プロジェクト: eotg1910/shineisp2
 public function __construct(\ProductCategory\Service\CategoryService $service, \Zend\Mvc\I18n\Translator $translator)
 {
     $this->service = $service;
     $this->translator = $translator;
     parent::__construct();
 }
コード例 #20
0
ファイル: CountrySelect.php プロジェクト: DavidHavl/Ajasta
 /**
  * @param AddressService       $addressService
  * @param CountryCodeFormatter $countryCodeFormatter
  */
 public function __construct(AddressService $addressService, CountryCodeFormatter $countryCodeFormatter)
 {
     $this->addressService = $addressService;
     $this->countryCodeFormatter = $countryCodeFormatter;
     parent::__construct(null, []);
 }
コード例 #21
0
 public function __construct(StatusService $statusService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->status = $statusService;
     $this->translator = $translator;
 }
コード例 #22
0
ファイル: CurrencySelect.php プロジェクト: DavidHavl/Ajasta
 /**
  * @param CurrencyCodeFormatter $currencyCodeFormatter
  */
 public function __construct(CurrencyCodeFormatter $currencyCodeFormatter)
 {
     $this->currencyCodeFormatter = $currencyCodeFormatter;
     parent::__construct();
 }