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


PHP Widget::__construct方法代码示例

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


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

示例1: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Model\Session\Quote $sessionQuote
  * @param \Magento\Sales\Model\AdminOrder\Create $orderCreate
  * @param PriceCurrencyInterface $priceCurrency
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Model\Session\Quote $sessionQuote, \Magento\Sales\Model\AdminOrder\Create $orderCreate, PriceCurrencyInterface $priceCurrency, array $data = [])
 {
     $this->priceCurrency = $priceCurrency;
     $this->_sessionQuote = $sessionQuote;
     $this->_orderCreate = $orderCreate;
     parent::__construct($context, $data);
 }
开发者ID:pradeep-wagento,项目名称:magento2,代码行数:14,代码来源:AbstractCreate.php

示例2: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\GiftMessage\Model\MessageFactory $messageFactory
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\GiftMessage\Helper\Message $messageHelper
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\GiftMessage\Model\MessageFactory $messageFactory, \Magento\Framework\Registry $registry, \Magento\GiftMessage\Helper\Message $messageHelper, array $data = [])
 {
     $this->_messageHelper = $messageHelper;
     $this->_coreRegistry = $registry;
     $this->_messageFactory = $messageFactory;
     parent::__construct($context, $data);
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:14,代码来源:Giftmessage.php

示例3: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Directory\Model\Config\Source\Country $sourceCountry
  * @param \Magento\Directory\Helper\Data $directoryHelper
  * @param \Magento\Framework\Registry $registry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Directory\Model\Config\Source\Country $sourceCountry, \Magento\Directory\Helper\Data $directoryHelper, \Magento\Framework\Registry $registry, array $data = [])
 {
     $this->_sourceCountry = $sourceCountry;
     $this->_directoryHelper = $directoryHelper;
     $this->_coreRegistry = $registry;
     parent::__construct($context, $data);
 }
开发者ID:pradeep-wagento,项目名称:magento2,代码行数:14,代码来源:Tax.php

示例4: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Model\Config\Source\Yesno $yesno
  * @param \Magento\Bundle\Model\Source\Option\Type $optionTypes
  * @param \Magento\Framework\Registry $registry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Model\Config\Source\Yesno $yesno, \Magento\Bundle\Model\Source\Option\Type $optionTypes, \Magento\Framework\Registry $registry, array $data = array())
 {
     $this->_coreRegistry = $registry;
     $this->_optionTypes = $optionTypes;
     $this->_yesno = $yesno;
     parent::__construct($context, $data);
 }
开发者ID:aiesh,项目名称:magento2,代码行数:14,代码来源:Option.php

示例5: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Newsletter\Model\TemplateFactory $templateFactory
  * @param \Magento\Newsletter\Model\QueueFactory $queueFactory
  * @param \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Newsletter\Model\TemplateFactory $templateFactory, \Magento\Newsletter\Model\QueueFactory $queueFactory, \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory, array $data = [])
 {
     $this->_templateFactory = $templateFactory;
     $this->_queueFactory = $queueFactory;
     $this->_subscriberFactory = $subscriberFactory;
     parent::__construct($context, $data);
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:14,代码来源:Preview.php

示例6: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\DB\Helper $resourceHelper
  * @param \Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $collectionFactory
  * @param \Magento\Framework\Registry $registry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\DB\Helper $resourceHelper, \Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $collectionFactory, \Magento\Framework\Registry $registry, array $data = [])
 {
     $this->_resourceHelper = $resourceHelper;
     $this->_collectionFactory = $collectionFactory;
     $this->_coreRegistry = $registry;
     parent::__construct($context, $data);
 }
开发者ID:pradeep-wagento,项目名称:magento2,代码行数:14,代码来源:Search.php

示例7: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Eav\Model\Entity\Attribute\SetFactory $attributeSetFactory
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Catalog\Helper\Product $productHelper
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Eav\Model\Entity\Attribute\SetFactory $attributeSetFactory, \Magento\Framework\Registry $registry, \Magento\Catalog\Helper\Product $productHelper, array $data = [])
 {
     $this->_productHelper = $productHelper;
     $this->_attributeSetFactory = $attributeSetFactory;
     $this->_coreRegistry = $registry;
     $this->jsonEncoder = $jsonEncoder;
     parent::__construct($context, $data);
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:16,代码来源:Edit.php

示例8: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context  $context
  * @param \Magento\Framework\Registry              $coreRegistry
  * @param \Magento\Framework\UrlInterface          $urlBuilder
  * @param \Sebwite\ProductDownloads\Model\Download $download
  * @param ScopeConfigInterface                     $scopeConfig
  * @param array                                    $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Framework\UrlInterface $urlBuilder, \Sebwite\ProductDownloads\Model\Download $download, ScopeConfigInterface $scopeConfig, array $data = [])
 {
     $this->coreRegistry = $coreRegistry;
     $this->download = $download;
     $this->urlBuilder = $urlBuilder;
     $this->scopeConfig = $scopeConfig;
     parent::__construct($context, $data);
 }
开发者ID:BlackIkeEagle,项目名称:Magento2-Product-Downloads,代码行数:16,代码来源:Download.php

示例9: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Eav\Model\Entity\Attribute\SetFactory $setFactory
  * @param \Magento\Eav\Model\Entity\AttributeFactory $attributeFactory
  * @param \Magento\Framework\Registry $registry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Eav\Model\Entity\Attribute\SetFactory $setFactory, \Magento\Eav\Model\Entity\AttributeFactory $attributeFactory, \Magento\Framework\Registry $registry, array $data = array())
 {
     $this->_jsonEncoder = $jsonEncoder;
     $this->_setFactory = $setFactory;
     $this->_attributeFactory = $attributeFactory;
     $this->_coreRegistry = $registry;
     parent::__construct($context, $data);
 }
开发者ID:aiesh,项目名称:magento2,代码行数:16,代码来源:Created.php

示例10: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Config\Model\Config\Source\Yesno $yesno
  * @param \Magento\Bundle\Model\Source\Option\Selection\Price\Type $priceType
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\Framework\Registry $registry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Config\Model\Config\Source\Yesno $yesno, \Magento\Bundle\Model\Source\Option\Selection\Price\Type $priceType, \Magento\Catalog\Helper\Data $catalogData, \Magento\Framework\Registry $registry, array $data = [])
 {
     $this->_catalogData = $catalogData;
     $this->_coreRegistry = $registry;
     $this->_priceType = $priceType;
     $this->_yesno = $yesno;
     parent::__construct($context, $data);
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:16,代码来源:Selection.php

示例11: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Config\Model\Config\Source\Yesno $configYesNo
  * @param \Magento\Catalog\Model\Config\Source\Product\Options\Type $optionType
  * @param Product $product
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Catalog\Model\ProductOptions\ConfigInterface $productOptionConfig
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Config\Model\Config\Source\Yesno $configYesNo, \Magento\Catalog\Model\Config\Source\Product\Options\Type $optionType, Product $product, \Magento\Framework\Registry $registry, \Magento\Catalog\Model\ProductOptions\ConfigInterface $productOptionConfig, array $data = [])
 {
     $this->_optionType = $optionType;
     $this->_configYesNo = $configYesNo;
     $this->_product = $product;
     $this->_productOptionConfig = $productOptionConfig;
     $this->_coreRegistry = $registry;
     parent::__construct($context, $data);
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:18,代码来源:Option.php

示例12: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param Configurable $configurableType
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Framework\Locale\CurrencyInterface $localeCurrency
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, Configurable $configurableType, \Magento\Catalog\Helper\Data $catalogData, \Magento\Framework\Registry $coreRegistry, \Magento\Framework\Locale\CurrencyInterface $localeCurrency, array $data = array())
 {
     $this->_configurableType = $configurableType;
     $this->_coreRegistry = $coreRegistry;
     $this->_catalogData = $catalogData;
     $this->_jsonEncoder = $jsonEncoder;
     $this->_localeCurrency = $localeCurrency;
     parent::__construct($context, $data);
 }
开发者ID:Atlis,项目名称:docker-magento2,代码行数:18,代码来源:Config.php

示例13: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\MediaStorage\Helper\File\Storage\Database $coreFileStorageDatabase
  * @param \Magento\Downloadable\Helper\File $downloadableFile
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Downloadable\Model\Sample $sampleModel
  * @param \Magento\Backend\Model\UrlFactory $urlFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\MediaStorage\Helper\File\Storage\Database $coreFileStorageDatabase, \Magento\Downloadable\Helper\File $downloadableFile, \Magento\Framework\Registry $coreRegistry, \Magento\Downloadable\Model\Sample $sampleModel, \Magento\Backend\Model\UrlFactory $urlFactory, array $data = [])
 {
     $this->_jsonEncoder = $jsonEncoder;
     $this->_coreFileStorageDb = $coreFileStorageDatabase;
     $this->_downloadableFile = $downloadableFile;
     $this->_coreRegistry = $coreRegistry;
     $this->_sampleModel = $sampleModel;
     $this->_urlFactory = $urlFactory;
     parent::__construct($context, $data);
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:20,代码来源:Samples.php

示例14: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param GroupRepositoryInterface $groupRepository
  * @param \Magento\Directory\Helper\Data $directoryHelper
  * @param \Magento\Framework\Module\Manager $moduleManager
  * @param \Magento\Framework\Registry $registry
  * @param GroupManagementInterface $groupManagement
  * @param \Magento\Framework\Api\SearchCriteriaBuilder $searchCriteriaBuilder
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, GroupRepositoryInterface $groupRepository, \Magento\Directory\Helper\Data $directoryHelper, \Magento\Framework\Module\Manager $moduleManager, \Magento\Framework\Registry $registry, GroupManagementInterface $groupManagement, \Magento\Framework\Api\SearchCriteriaBuilder $searchCriteriaBuilder, array $data = [])
 {
     $this->_groupRepository = $groupRepository;
     $this->_directoryHelper = $directoryHelper;
     $this->moduleManager = $moduleManager;
     $this->_coreRegistry = $registry;
     $this->_groupManagement = $groupManagement;
     $this->_searchCriteriaBuilder = $searchCriteriaBuilder;
     parent::__construct($context, $data);
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:20,代码来源:AbstractGroup.php

示例15: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\CatalogInventory\Model\Source\Backorders $backorders
  * @param \Magento\CatalogInventory\Model\Source\Stock $stock
  * @param \Magento\Framework\Module\Manager $moduleManager
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry
  * @param \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\CatalogInventory\Model\Source\Backorders $backorders, \Magento\CatalogInventory\Model\Source\Stock $stock, \Magento\Framework\Module\Manager $moduleManager, \Magento\Framework\Registry $coreRegistry, \Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry, \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration, array $data = [])
 {
     $this->stock = $stock;
     $this->backorders = $backorders;
     $this->moduleManager = $moduleManager;
     $this->coreRegistry = $coreRegistry;
     $this->stockRegistry = $stockRegistry;
     $this->stockConfiguration = $stockConfiguration;
     parent::__construct($context, $data);
 }
开发者ID:pradeep-wagento,项目名称:magento2,代码行数:20,代码来源:Inventory.php


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