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