本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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');
}
示例7: __construct
public function __construct(Context $context, Registry $registry, array $data = [])
{
$this->_coreRegistry = $registry;
parent::__construct($context, $data);
}
示例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;
}
示例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);
}
示例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);
}
示例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);
}