當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。