本文整理汇总了PHP中Magento\Catalog\Controller\Adminhtml\Product类的典型用法代码示例。如果您正苦于以下问题:PHP Product类的具体用法?PHP Product怎么用?PHP Product使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Product类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
/**
* 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
示例9: __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
示例10: __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
示例11: __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
示例12: __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
示例13: __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
示例14: __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
示例15: __construct
/**
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Catalog\Controller\Adminhtml\Product\Builder $productBuilder
* @param \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory
* @param CollectionFactory $attributeCollectionFactory
*/
public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Catalog\Controller\Adminhtml\Product\Builder $productBuilder, \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory, CollectionFactory $attributeCollectionFactory)
{
parent::__construct($context, $productBuilder);
$this->resultJsonFactory = $resultJsonFactory;
$this->attributeCollectionFactory = $attributeCollectionFactory;
}
开发者ID:BlackIkeEagle,项目名称:magento2-continuousphp,代码行数:12,代码来源:AddAttributeToTemplate.php
示例16: __construct
/**
* @param Action\Context $context
* @param Builder $productBuilder
* @param \Magento\Catalog\Model\Product\Copier $productCopier
*/
public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, \Magento\Catalog\Model\Product\Copier $productCopier)
{
$this->productCopier = $productCopier;
parent::__construct($context, $productBuilder);
}
开发者ID:aiesh,项目名称:magento2,代码行数:10,代码来源:Duplicate.php
示例17: __construct
/**
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Catalog\Controller\Adminhtml\Product\Builder $productBuilder
* @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
*/
public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Catalog\Controller\Adminhtml\Product\Builder $productBuilder, \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory)
{
parent::__construct($context, $productBuilder);
$this->resultRedirectFactory = $resultRedirectFactory;
}
开发者ID:shabbirvividads,项目名称:magento2,代码行数:10,代码来源:MassDelete.php
示例18: __construct
/**
* @param Action\Context $context
* @param Builder $productBuilder
* @param Initialization\StockDataFilter $stockFilter
*/
public function __construct(\Magento\Backend\App\Action\Context $context, Product\Builder $productBuilder, Initialization\StockDataFilter $stockFilter)
{
$this->stockFilter;
parent::__construct($context, $productBuilder);
}
开发者ID:Atlis,项目名称:docker-magento2,代码行数:10,代码来源:NewAction.php
示例19: __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
示例20: __construct
/**
* @param Context $context
* @param Builder $productBuilder
* @param Filter $filter
* @param CollectionFactory $collectionFactory
*/
public function __construct(Context $context, Builder $productBuilder, Filter $filter, CollectionFactory $collectionFactory)
{
$this->filter = $filter;
$this->collectionFactory = $collectionFactory;
parent::__construct($context, $productBuilder);
}
开发者ID:pradeep-wagento,项目名称:magento2,代码行数:12,代码来源:MassDelete.php
注:本文中的Magento\Catalog\Controller\Adminhtml\Product类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论