當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Product::__construct方法代碼示例

本文整理匯總了PHP中Magento\Catalog\Controller\Adminhtml\Product::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Product::__construct方法的具體用法?PHP Product::__construct怎麽用?PHP Product::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Magento\Catalog\Controller\Adminhtml\Product的用法示例。


在下文中一共展示了Product::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * @param Action\Context $context
  * @param Builder $productBuilder
  * @param Initialization\Helper $initializationHelper
  * @param \Magento\Catalog\Model\Product\Copier $productCopier
  * @param \Magento\Catalog\Model\Product\TypeTransitionManager $productTypeManager
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, Initialization\Helper $initializationHelper, \Magento\Catalog\Model\Product\Copier $productCopier, \Magento\Catalog\Model\Product\TypeTransitionManager $productTypeManager)
 {
     $this->initializationHelper = $initializationHelper;
     $this->productCopier = $productCopier;
     $this->productTypeManager = $productTypeManager;
     parent::__construct($context, $productBuilder);
 }
開發者ID:whoople,項目名稱:magento2-testing,代碼行數:14,代碼來源:Save.php

示例2: __construct

 /**
  * @param Action\Context $context
  * @param Builder $productBuilder
  * @param Initialization\StockDataFilter $stockFilter
  * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
  * @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, Initialization\StockDataFilter $stockFilter, \Magento\Framework\View\Result\PageFactory $resultPageFactory, \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory)
 {
     $this->stockFilter = $stockFilter;
     parent::__construct($context, $productBuilder);
     $this->resultPageFactory = $resultPageFactory;
     $this->resultForwardFactory = $resultForwardFactory;
 }
開發者ID:rafaelstz,項目名稱:magento2,代碼行數:14,代碼來源:NewAction.php

示例3: __construct

 /**
  * @param Action\Context $context
  * @param Builder $productBuilder
  * @param \Magento\Catalog\Model\Indexer\Product\Price\Processor $productPriceIndexerProcessor
  * @param Filter $filter
  * @param CollectionFactory $collectionFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, \Magento\Catalog\Model\Indexer\Product\Price\Processor $productPriceIndexerProcessor, Filter $filter, CollectionFactory $collectionFactory)
 {
     $this->filter = $filter;
     $this->collectionFactory = $collectionFactory;
     $this->_productPriceIndexerProcessor = $productPriceIndexerProcessor;
     parent::__construct($context, $productBuilder);
 }
開發者ID:kidaa30,項目名稱:magento2-platformsh,代碼行數:14,代碼來源:MassStatus.php

示例4: __construct

 /**
  * @param Action\Context $context
  * @param Builder $productBuilder
  * @param \Magento\Framework\Stdlib\DateTime\Filter\Date $dateFilter
  * @param \Magento\Catalog\Model\Product\Validator $productValidator
  * @param \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory
  * @param \Magento\Framework\View\LayoutFactory $layoutFactory
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, \Magento\Framework\Stdlib\DateTime\Filter\Date $dateFilter, \Magento\Catalog\Model\Product\Validator $productValidator, \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory, \Magento\Framework\View\LayoutFactory $layoutFactory, \Magento\Catalog\Model\ProductFactory $productFactory)
 {
     $this->_dateFilter = $dateFilter;
     $this->productValidator = $productValidator;
     parent::__construct($context, $productBuilder);
     $this->resultJsonFactory = $resultJsonFactory;
     $this->layoutFactory = $layoutFactory;
     $this->productFactory = $productFactory;
 }
開發者ID:nblair,項目名稱:magescotch,代碼行數:18,代碼來源:Validate.php

示例5: __construct

 /**
  * @param Action\Context $context
  * @param Builder $productBuilder
  * @param Initialization\Helper $initializationHelper
  * @param \Magento\Catalog\Model\Product\Copier $productCopier
  * @param \Magento\Catalog\Model\Product\TypeTransitionManager $productTypeManager
  * @param \Magento\Catalog\Api\CategoryLinkManagementInterface $categoryLinkManagement
  * @param \Magento\Catalog\Api\ProductRepositoryInterface $productRepository
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, Initialization\Helper $initializationHelper, \Magento\Catalog\Model\Product\Copier $productCopier, \Magento\Catalog\Model\Product\TypeTransitionManager $productTypeManager, \Magento\Catalog\Api\CategoryLinkManagementInterface $categoryLinkManagement, \Magento\Catalog\Api\ProductRepositoryInterface $productRepository)
 {
     $this->initializationHelper = $initializationHelper;
     $this->productCopier = $productCopier;
     $this->productTypeManager = $productTypeManager;
     $this->categoryLinkManagement = $categoryLinkManagement;
     $this->productRepository = $productRepository;
     parent::__construct($context, $productBuilder);
 }
開發者ID:BlackIkeEagle,項目名稱:magento2-continuousphp,代碼行數:18,代碼來源:Save.php

示例6: __construct

 /**
  * @param Context $context
  * @param Builder $productBuilder
  * @param Filter $filter
  * @param CollectionFactory $collectionFactory
  * @param ScopeConfigInterface $scopeConfig
  */
 public function __construct(Context $context, Builder $productBuilder, Filter $filter, CollectionFactory $collectionFactory, SetFactory $attributeSetFactory, ScopeConfigInterface $scopeConfig, Configurable $configurableProduct, EntityFactory $entityFactory)
 {
     $this->filter = $filter;
     $this->collectionFactory = $collectionFactory;
     $this->attributeSetFactory = $attributeSetFactory;
     $this->scopeConfig = $scopeConfig;
     $this->configurableProduct = $configurableProduct;
     $this->entityFactory = $entityFactory;
     parent::__construct($context, $productBuilder);
 }
開發者ID:salelsol,項目名稱:magento2-extension-change-attribute-set,代碼行數:17,代碼來源:MassChangeattributeset.php

示例7: __construct

 /**
  * @param Action\Context $context
  * @param Builder $productBuilder
  * @param \Magento\Catalog\Model\Indexer\Product\Price\Processor $productPriceIndexerProcessor
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, \Magento\Catalog\Model\Indexer\Product\Price\Processor $productPriceIndexerProcessor)
 {
     $this->_productPriceIndexerProcessor = $productPriceIndexerProcessor;
     parent::__construct($context, $productBuilder);
 }
開發者ID:nja78,項目名稱:magento2,代碼行數:10,代碼來源:MassStatus.php

示例8: __construct

 /**
  * @param Context $context
  * @param Builder $productBuilder
  * @param Composite $productCompositeHelper
  */
 public function __construct(Context $context, Builder $productBuilder, Composite $productCompositeHelper)
 {
     $this->productCompositeHelper = $productCompositeHelper;
     parent::__construct($context, $productBuilder);
 }
開發者ID:nblair,項目名稱:magescotch,代碼行數:10,代碼來源:ShowUpdateResult.php

示例9: __construct

 /**
  * Constructor alert stock grid
  *
  * @param Action\Context $context
  * @param Builder $productBuilder
  * @param \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, LayoutFactory $resultLayoutFactory)
 {
     $this->resultLayoutFactory = $resultLayoutFactory;
     parent::__construct($context, $productBuilder);
 }
開發者ID:nblair,項目名稱:magescotch,代碼行數:12,代碼來源:AlertsStockGrid.php

示例10: __construct

 /**
  * @param Action\Context $context
  * @param Builder $productBuilder
  * @param \Magento\Catalog\Model\Product\Copier $productCopier
  * @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, \Magento\Catalog\Model\Product\Copier $productCopier, \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory)
 {
     $this->productCopier = $productCopier;
     parent::__construct($context, $productBuilder);
     $this->resultRedirectFactory = $resultRedirectFactory;
 }
開發者ID:shabbirvividads,項目名稱:magento2,代碼行數:12,代碼來源:Duplicate.php

示例11: __construct

 /**
  * @param Action\Context $context
  * @param Builder $productBuilder
  * @param \Magento\Framework\Stdlib\DateTime\Filter\Date $dateFilter
  * @param \Magento\Catalog\Model\Product\Validator $productValidator
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, \Magento\Framework\Stdlib\DateTime\Filter\Date $dateFilter, \Magento\Catalog\Model\Product\Validator $productValidator)
 {
     $this->_dateFilter = $dateFilter;
     $this->productValidator = $productValidator;
     parent::__construct($context, $productBuilder);
 }
開發者ID:aiesh,項目名稱:magento2,代碼行數:12,代碼來源:Validate.php

示例12: __construct

 /**
  * @param Action\Context $context
  * @param Builder $productBuilder
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, \Magento\Framework\Registry $registry, \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory)
 {
     $this->registry = $registry;
     parent::__construct($context, $productBuilder);
     $this->resultLayoutFactory = $resultLayoutFactory;
 }
開發者ID:kidaa30,項目名稱:magento2-platformsh,代碼行數:12,代碼來源:CustomOptions.php

示例13: __construct

 /**
  * @param Action\Context $context
  * @param Product\Builder $productBuilder
  * @param Product\Initialization\Helper $initializationHelper
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, Product\Initialization\Helper $initializationHelper)
 {
     $this->initializationHelper = $initializationHelper;
     parent::__construct($context, $productBuilder);
 }
開發者ID:nblair,項目名稱:magescotch,代碼行數:10,代碼來源:Form.php

示例14: __construct

 /**
  * @param Action\Context $context
  * @param Builder $productBuilder
  * @param \Magento\Catalog\Model\Indexer\Product\Price\Processor $productPriceIndexerProcessor
  * @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, \Magento\Catalog\Model\Indexer\Product\Price\Processor $productPriceIndexerProcessor, \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory)
 {
     $this->_productPriceIndexerProcessor = $productPriceIndexerProcessor;
     parent::__construct($context, $productBuilder);
     $this->resultRedirectFactory = $resultRedirectFactory;
 }
開發者ID:shabbirvividads,項目名稱:magento2,代碼行數:12,代碼來源:MassStatus.php

示例15: __construct

 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Catalog\Controller\Adminhtml\Product\Builder $productBuilder
  * @param \Magento\Framework\Controller\Result\RawFactory $resultRawFactory
  * @param \Magento\Framework\View\LayoutFactory $layoutFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Catalog\Controller\Adminhtml\Product\Builder $productBuilder, \Magento\Framework\Controller\Result\RawFactory $resultRawFactory, \Magento\Framework\View\LayoutFactory $layoutFactory)
 {
     parent::__construct($context, $productBuilder);
     $this->resultRawFactory = $resultRawFactory;
     $this->layoutFactory = $layoutFactory;
 }
開發者ID:kidaa30,項目名稱:magento2-platformsh,代碼行數:12,代碼來源:Wysiwyg.php


注:本文中的Magento\Catalog\Controller\Adminhtml\Product::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。