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


PHP Container::__construct方法代码示例

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


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

示例1: __construct

 /**
  * @param \Magento\Backend\Block\Widget\Context $context
  * @param \Magento\Customer\Service\V1\CustomerAccountServiceInterface $customerAccount
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\Framework\Registry $registry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Customer\Service\V1\CustomerAccountServiceInterface $customerAccount, \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Framework\Registry $registry, array $data = array())
 {
     $this->_coreRegistry = $registry;
     $this->customerAccount = $customerAccount;
     $this->_productFactory = $productFactory;
     parent::__construct($context, $data);
 }
开发者ID:aiesh,项目名称:magento2,代码行数:14,代码来源:Main.php

示例2: __construct

 /**
  * @param \Magento\Backend\Block\Widget\Context $context
  * @param \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Customer\Helper\View $customerViewHelper
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository, \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Framework\Registry $registry, \Magento\Customer\Helper\View $customerViewHelper, array $data = [])
 {
     $this->_coreRegistry = $registry;
     $this->customerRepository = $customerRepository;
     $this->_productFactory = $productFactory;
     $this->_customerViewHelper = $customerViewHelper;
     parent::__construct($context, $data);
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:16,代码来源:Main.php

示例3: __construct

 public function __construct(\Ess\M2ePro\Block\Adminhtml\Magento\Context\Widget $context, array $data = [])
 {
     $this->helperFactory = $context->getHelperFactory();
     $this->modelFactory = $context->getModelFactory();
     $this->activeRecordFactory = $context->getActiveRecordFactory();
     $this->parentFactory = $context->getParentFactory();
     $this->css = $context->getCss();
     $this->jsPhp = $context->getJsPhp();
     $this->js = $context->getJs();
     $this->jsTranslator = $context->getJsTranslator();
     $this->jsUrl = $context->getJsUrl();
     parent::__construct($context, $data);
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:13,代码来源:AbstractContainer.php

示例4: __construct

 /**
  * @param \Magento\Backend\Block\Widget\Context $context
  * @param Selector $urlrewriteSelector
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Magento\UrlRewrite\Block\Selector $urlrewriteSelector, array $data = [])
 {
     $this->_urlrewriteSelector = $urlrewriteSelector;
     parent::__construct($context, $data);
 }
开发者ID:tingyeeh,项目名称:magento2,代码行数:10,代码来源:GridContainer.php

示例5: __construct

 /**
  * @param \Magento\Backend\Block\Widget\Context $context
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Magento\Catalog\Model\ProductFactory $productFactory, array $data = array())
 {
     $this->_productFactory = $productFactory;
     parent::__construct($context, $data);
 }
开发者ID:aiesh,项目名称:magento2,代码行数:10,代码来源:Detail.php

示例6: __construct

 /**
  * @param \Magento\Backend\Block\Widget\Context $context
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Widget\Context $context, array $data = [])
 {
     parent::__construct($context, $data);
     $this->buttonList->remove('add');
 }
开发者ID:outeredge,项目名称:magento-layout-module,代码行数:9,代码来源:Elements.php

示例7: __construct

 public function __construct(Context $context, Registry $registry, array $data = [])
 {
     $this->_coreRegistry = $registry;
     parent::__construct($context, $data);
 }
开发者ID:dragonsword007008,项目名称:magento2,代码行数:5,代码来源:RelatedOrder.php

示例8: __construct

 /**
  * @param \Magento\Backend\Block\Widget\Context $context
  * @param \Magento\User\Model\ResourceModel\User $resourceModel
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Magento\User\Model\ResourceModel\User $resourceModel, array $data = [])
 {
     parent::__construct($context, $data);
     $this->_resourceModel = $resourceModel;
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:10,代码来源:User.php

示例9: __construct

 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Wyomind\Watchlog\Helper\Data $watchlogHelper, array $data = [])
 {
     $this->watchlogHelper = $watchlogHelper;
     $this->watchlogHelper->checkWarning();
     parent::__construct($context, $data);
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:6,代码来源:Advanced.php

示例10: __construct

 /**
  * @param \Magento\Backend\Block\Widget\Context $context
  * @param \Magento\GoogleShopping\Model\FlagFactory $flagFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Widget\Context $context, \Magento\GoogleShopping\Model\FlagFactory $flagFactory, array $data = [])
 {
     $this->_flagFactory = $flagFactory;
     parent::__construct($context, $data);
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:10,代码来源:Items.php

示例11: __construct

 /**
  * @param \Magento\Backend\Block\Widget\Context $context
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Widget\Context $context, array $data = [])
 {
     parent::__construct($context, $data);
 }
开发者ID:outeredge,项目名称:magento-layout-module,代码行数:8,代码来源:Groups.php


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