当前位置: 首页>>代码示例>>PHP>>正文


PHP Select::__construct方法代码示例

本文整理汇总了PHP中Zend\Form\Element\Select::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Select::__construct方法的具体用法?PHP Select::__construct怎么用?PHP Select::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend\Form\Element\Select的用法示例。


在下文中一共展示了Select::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 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;
 }
开发者ID:stormtrooper42,项目名称:shineisp2,代码行数:7,代码来源:CommonAttributes.php

示例2: __construct

 /**
  * __construct
  *
  * @param string $name
  * @param array $options
  */
 public function __construct($name = null, $options = [])
 {
     if (null === $name) {
         $name = 'locale-select';
     }
     parent::__construct($name, $options);
 }
开发者ID:coolms,项目名称:common,代码行数:13,代码来源:LocaleSelect.php

示例3: __construct

 /**
  * @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);
 }
开发者ID:DavidHavl,项目名称:Ajasta,代码行数:16,代码来源:LocaleSelect.php

示例4: __construct

 public function __construct(\Product\Service\ProductTypeService $service, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->service = $service;
     $this->translator = $translator;
 }
开发者ID:eotg1910,项目名称:shineisp2,代码行数:6,代码来源:Types.php

示例5: __construct

 public function __construct(LegalformService $legalformService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->legalform = $legalformService;
     $this->translator = $translator;
 }
开发者ID:eotg1910,项目名称:shineisp2,代码行数:6,代码来源:Legalform.php

示例6: __construct

 /**
  * @param ClientRepository $clientRepository
  */
 public function __construct(ClientRepository $clientRepository)
 {
     $this->clientRepository = $clientRepository;
     parent::__construct();
 }
开发者ID:DavidHavl,项目名称:Ajasta,代码行数:8,代码来源:ClientSelect.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setValueOptions(['' => 'None', 'hours' => 'Hours', 'days' => 'Days']);
 }
开发者ID:DavidHavl,项目名称:Ajasta,代码行数:5,代码来源:UnitSelect.php

示例8: __construct

 public function __construct(ContactTypeService $contacttypeService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->contacttype = $contacttypeService;
     $this->translator = $translator;
 }
开发者ID:eotg1910,项目名称:shineisp2,代码行数:6,代码来源:ContactType.php

示例9: __construct

 public function __construct(\Zend\Mvc\I18n\Translator $translator)
 {
     $this->translator = $translator;
     parent::__construct();
 }
开发者ID:stormtrooper42,项目名称:shineisp2,代码行数:5,代码来源:Enadisabled.php

示例10: __construct

 public function __construct(CustomerGroupService $service, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->service = $service;
     $this->translator = $translator;
 }
开发者ID:shinesoftware-zf-modules,项目名称:Customer,代码行数:6,代码来源:CustomerGroup.php

示例11: __construct

 public function __construct($name = null, $options = [])
 {
     $this->attributes['id'] = uniqid();
     parent::__construct($name, $options);
 }
开发者ID:fagundes,项目名称:zff-base,代码行数:5,代码来源:BsSelect.php

示例12: __construct

 public function __construct(PageCategoryService $pagecategoryService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->pagecategoryService = $pagecategoryService;
     $this->translator = $translator;
 }
开发者ID:eotg1910,项目名称:shineisp2,代码行数:6,代码来源:PageCategories.php

示例13: __construct

 public function __construct($serviceFinder = null)
 {
     parent::__construct('select');
     //$this->languagesServiceFinder = $serviceFinder;
     $this->setValueOptions(['id' => 2]);
 }
开发者ID:sebaks,项目名称:Translate,代码行数:6,代码来源:Select.php

示例14: __construct

 /**
  * 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);
 }
开发者ID:patrova,项目名称:omeka-s,代码行数:12,代码来源:ResourceSelect.php

示例15: __construct

 public function __construct(ProfileCategoryService $eventcategoryService, \Zend\Mvc\I18n\Translator $translator)
 {
     parent::__construct();
     $this->eventcategoryService = $eventcategoryService;
     $this->translator = $translator;
 }
开发者ID:shinesoftware-zf-modules,项目名称:Profile,代码行数:6,代码来源:ProfileCategories.php


注:本文中的Zend\Form\Element\Select::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。