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


PHP Generic::__construct方法代码示例

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


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

示例1: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\Theme\Model\Config\Customization $customizationConfig
  * @param \Magento\DesignEditor\Model\Theme\Context $themeContext
  * @param \Magento\Core\Helper\Data $coreHelper
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Theme\Model\Config\Customization $customizationConfig, \Magento\DesignEditor\Model\Theme\Context $themeContext, \Magento\Core\Helper\Data $coreHelper, array $data = array())
 {
     $this->_coreHelper = $coreHelper;
     parent::__construct($context, $registry, $formFactory, $data);
     $this->_customizationConfig = $customizationConfig;
     $this->_themeContext = $themeContext;
 }
开发者ID:aiesh,项目名称:magento2,代码行数:16,代码来源:Js.php

示例2: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context             $context
  * @param \Magento\Framework\Registry                         $registry
  * @param \Magento\Framework\Data\FormFactory                 $formFactory
  * @param \Magento\Catalog\Model\ResourceModel\Category\Collection $categoryCollection
  * @param \Magento\Framework\View\LayoutFactory               $layoutFactory
  * @param \Magento\Framework\Json\EncoderInterface            $jsonEncoder
  * @param \Magento\Framework\DB\Helper                        $resourceHelper
  * @param \Magento\Framework\App\Filesystem\DirectoryList     $directoryList
  * @param \Wyomind\Core\Helper\Data                           $coreHelper
  * @param array                                               $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\App\Filesystem\DirectoryList $directoryList, \Wyomind\Core\Helper\Data $coreHelper, \Magento\Framework\ObjectManagerInterface $objectManager, array $data = [])
 {
     $this->_directoryList = $directoryList;
     $this->_coreHelper = $coreHelper;
     $this->_objectManager = $objectManager;
     parent::__construct($context, $registry, $formFactory, $data);
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:19,代码来源:Categories.php

示例3: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\Cms\Model\Wysiwyg\Config $wysiwygConfig
  * @param \Magento\Store\Model\System\Store $systemStore
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Store\Model\System\Store $systemStore, \Alin\Cadou\Model\Cadou\Source\ProductSelect $productSelect, \Magento\Store\Model\ResourceModel\Store\Collection $storeSelect, array $data = [])
 {
     $this->_systemStore = $systemStore;
     $this->_productSelect = $productSelect;
     $this->_storeSelect = $storeSelect;
     parent::__construct($context, $registry, $formFactory, $data);
 }
开发者ID:alinmiron,项目名称:alin-cadou,代码行数:15,代码来源:Form.php

示例4: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\Tax\Model\TaxClass\Source\Customer $taxCustomer
  * @param \Magento\Customer\Service\V1\CustomerGroupServiceInterface $groupService
  * @param \Magento\Customer\Service\V1\Data\CustomerGroupBuilder $groupBuilder
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Tax\Model\TaxClass\Source\Customer $taxCustomer, \Magento\Customer\Service\V1\CustomerGroupServiceInterface $groupService, \Magento\Customer\Service\V1\Data\CustomerGroupBuilder $groupBuilder, array $data = array())
 {
     $this->_taxCustomer = $taxCustomer;
     $this->_groupService = $groupService;
     $this->_groupBuilder = $groupBuilder;
     parent::__construct($context, $registry, $formFactory, $data);
 }
开发者ID:aiesh,项目名称:magento2,代码行数:16,代码来源:Form.php

示例5: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\Customer\Service\V1\CustomerGroupServiceInterface $customerGroup
  * @param \Magento\Framework\Convert\Object $objectConverter
  * @param \Magento\Store\Model\System\Store $systemStore
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Customer\Service\V1\CustomerGroupServiceInterface $customerGroup, \Magento\Framework\Convert\Object $objectConverter, \Magento\Store\Model\System\Store $systemStore, array $data = array())
 {
     $this->_systemStore = $systemStore;
     $this->_customerGroup = $customerGroup;
     $this->_objectConverter = $objectConverter;
     parent::__construct($context, $registry, $formFactory, $data);
 }
开发者ID:aiesh,项目名称:magento2,代码行数:16,代码来源:Main.php

示例6: __construct

 /**
  * Constructor
  *
  * @param Context     $context
  * @param Registry    $registry
  * @param FormFactory $formFactory
  * @param SystemStore $systemStore
  * @param Config      $config
  */
 public function __construct(Context $context, Registry $registry, FormFactory $formFactory, SystemStore $systemStore, Config $config)
 {
     $this->systemStore = $systemStore;
     $this->storeManager = $context->getStoreManager();
     $this->config = $config;
     return parent::__construct($context, $registry, $formFactory);
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:16,代码来源:Form.php

示例7: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\ProductVideo\Helper\Media $mediaHelper
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\ProductVideo\Helper\Media $mediaHelper, array $data = [])
 {
     parent::__construct($context, $registry, $formFactory, $data);
     $this->mediaHelper = $mediaHelper;
     $this->jsonEncoder = $jsonEncoder;
     $this->setUseContainer(true);
 }
开发者ID:CompassPointMedia,项目名称:magento2,代码行数:15,代码来源:NewVideo.php

示例8: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\Newsletter\Model\QueueFactory $queueFactory
  * @param \Magento\Store\Model\System\Store $systemStore
  * @param \Magento\Cms\Model\Wysiwyg\Config $wysiwygConfig
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Newsletter\Model\QueueFactory $queueFactory, \Magento\Store\Model\System\Store $systemStore, \Magento\Cms\Model\Wysiwyg\Config $wysiwygConfig, array $data = [])
 {
     $this->_wysiwygConfig = $wysiwygConfig;
     $this->_systemStore = $systemStore;
     $this->_queueFactory = $queueFactory;
     parent::__construct($context, $registry, $formFactory, $data);
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:16,代码来源:Form.php

示例9: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\Eav\Model\Config $eavConfig
  * @param \Magento\DesignEditor\Model\Editor\Tools\Controls\Factory $controlFactory
  * @param \Magento\DesignEditor\Model\Theme\Context $themeContext
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Eav\Model\Config $eavConfig, \Magento\DesignEditor\Model\Editor\Tools\Controls\Factory $controlFactory, \Magento\DesignEditor\Model\Theme\Context $themeContext, array $data = [])
 {
     parent::__construct($context, $registry, $formFactory, $data);
     $this->_eavConfig = $eavConfig;
     $this->_controlFactory = $controlFactory;
     $this->_themeContext = $themeContext;
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:16,代码来源:ImageSizing.php

示例10: __construct

 public function __construct(Context $context, Registry $registry, FormFactory $formFactory, Config $wysiwygConfig, Store $systemStore, SlidersFactory $slidersFactory, array $data = [])
 {
     $this->_sliderFactory = $slidersFactory;
     $this->_systemStore = $systemStore;
     $this->_wysiwygConfig = $wysiwygConfig;
     parent::__construct($context, $registry, $formFactory, $data);
 }
开发者ID:hientruongbluecom,项目名称:cemagento2,代码行数:7,代码来源:Form.php

示例11: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param Yesno $yesNo
  * @param Data $eavData
  * @param array $disableScopeChangeList
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, Yesno $yesNo, Data $eavData, array $disableScopeChangeList = ['sku'], array $data = [])
 {
     $this->_yesNo = $yesNo;
     $this->_eavData = $eavData;
     $this->disableScopeChangeList = $disableScopeChangeList;
     parent::__construct($context, $registry, $formFactory, $data);
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:16,代码来源:Advanced.php

示例12: __construct

 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \TanDinh\Banner\Model\Banners $bannerModel, array $data = [])
 {
     $this->_coreRegistry = $registry;
     $this->_formFactory = $formFactory;
     $this->_bannerModel = $bannerModel;
     parent::__construct($context, $registry, $formFactory, $data);
 }
开发者ID:kietluu,项目名称:magento2-backend-training,代码行数:7,代码来源:Main.php

示例13: __construct

 /**
  * @param Context $context
  * @param Registry $registry
  * @param FormFactory $formFactory
  * @param Config $wysiwygConfig
  * @param array $data
  */
 public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, Context $context, Registry $registry, FormFactory $formFactory, Config $wysiwygConfig, Status $manufacturerStatus, array $data = [])
 {
     $this->_wysiwygConfig = $wysiwygConfig;
     $this->_manufacturerStatus = $manufacturerStatus;
     parent::__construct($context, $registry, $formFactory, $data);
     $this->objectManager = $objectManager;
 }
开发者ID:rushvisilk,项目名称:mage2-helloworld,代码行数:14,代码来源:Info.php

示例14: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\Theme\Model\Layout\Source\Layout $pageLayout
  * @param \Magento\Framework\View\Design\Theme\LabelFactory $labelFactory
  * @param \Magento\Framework\View\Model\PageLayout\Config\BuilderInterface $pageLayoutBuilder
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Theme\Model\Layout\Source\Layout $pageLayout, \Magento\Framework\View\Design\Theme\LabelFactory $labelFactory, \Magento\Framework\View\Model\PageLayout\Config\BuilderInterface $pageLayoutBuilder, array $data = [])
 {
     $this->pageLayoutBuilder = $pageLayoutBuilder;
     $this->_labelFactory = $labelFactory;
     $this->_pageLayout = $pageLayout;
     parent::__construct($context, $registry, $formFactory, $data);
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:16,代码来源:Design.php

示例15: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\Framework\DataObject $objectFactory
  * @param \Magebase\Carousel\Model\Banner $banner
  * @param \Magebase\Carousel\Model\Slider $slider
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\DataObject $objectFactory, \Magebase\Carousel\Model\Banner $banner, \Magebase\Carousel\Model\Slider $slider, array $data = [])
 {
     $this->_objectFactory = $objectFactory;
     $this->_banner = $banner;
     $this->_sliderFactory = $slider;
     parent::__construct($context, $registry, $formFactory, $data);
 }
开发者ID:igor-lero9,项目名称:magebase_carousel,代码行数:16,代码来源:Banner.php


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