本文整理汇总了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);
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}