本文整理汇总了PHP中Magento\Backend\Block\Widget\Tabs::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Tabs::__construct方法的具体用法?PHP Tabs::__construct怎么用?PHP Tabs::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Backend\Block\Widget\Tabs
的用法示例。
在下文中一共展示了Tabs::__construct方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
* @param \Magento\Backend\Model\Auth\Session $authSession
* @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\CollectionFactory $collectionFactory
* @param \Magento\Catalog\Helper\Catalog $helperCatalog
* @param \Magento\Framework\Registry $registry
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Backend\Model\Auth\Session $authSession, \Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\CollectionFactory $collectionFactory, \Magento\Catalog\Helper\Catalog $helperCatalog, \Magento\Framework\Registry $registry, array $data = [])
{
$this->_collectionFactory = $collectionFactory;
$this->_coreRegistry = $registry;
$this->_helperCatalog = $helperCatalog;
parent::__construct($context, $jsonEncoder, $authSession, $data);
}
示例2: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
* @param \Magento\Backend\Model\Auth\Session $authSession
* @param \Magento\User\Model\Resource\User\CollectionFactory $userCollectionFactory
* @param array $data
*/
public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Sugarcode\Test\Model\TestFactory $testFactory, \Magento\Backend\Model\Auth\Session $authSession, \Sugarcode\Test\Model\Resource\Test\CollectionFactory $userCollectionFactory, array $data = [])
{
// _userCollectionFactory is used in parent::__construct
$this->_testFactory = $testFactory;
$this->_objectManager = $objectManager;
$this->_jsonEncoder = $jsonEncoder;
parent::__construct($context, $jsonEncoder, $authSession, $data);
}
示例3: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
* @param \Magento\Backend\Model\Auth\Session $authSession
* @param \Magento\Framework\Module\Manager $moduleManager
* @param \Magento\Eav\Model\Resource\Entity\Attribute\Group\CollectionFactory $collectionFactory
* @param \Magento\Catalog\Helper\Catalog $helperCatalog
* @param \Magento\Catalog\Helper\Data $catalogData
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\Translate\InlineInterface $translateInline
* @param array $data
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Backend\Model\Auth\Session $authSession, \Magento\Framework\Module\Manager $moduleManager, \Magento\Eav\Model\Resource\Entity\Attribute\Group\CollectionFactory $collectionFactory, \Magento\Catalog\Helper\Catalog $helperCatalog, \Magento\Catalog\Helper\Data $catalogData, \Magento\Framework\Registry $registry, \Magento\Framework\Translate\InlineInterface $translateInline, array $data = [])
{
$this->_moduleManager = $moduleManager;
$this->_collectionFactory = $collectionFactory;
$this->_helperCatalog = $helperCatalog;
$this->_catalogData = $catalogData;
$this->_coreRegistry = $registry;
$this->_translateInline = $translateInline;
parent::__construct($context, $jsonEncoder, $authSession, $data);
}
示例4: __construct
public function __construct(\Ess\M2ePro\Block\Adminhtml\Magento\Context\Template $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Backend\Model\Auth\Session $authSession, 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, $jsonEncoder, $authSession, $data);
}
示例5: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
* @param \Magento\Backend\Model\Auth\Session $authSession
* @param \Magento\Framework\Registry $registry
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Backend\Model\Auth\Session $authSession, \Magento\Framework\Registry $registry, array $data = array())
{
$this->_coreRegistry = $registry;
parent::__construct($context, $jsonEncoder, $authSession, $data);
}
示例6: __construct
/**
* @param \Magento\Backend\Block\Template\Context $context
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
* @param \Magento\Backend\Model\Auth\Session $authSession
* @param \Magento\User\Model\Resource\User\CollectionFactory $userCollectionFactory
* @param array $data
*/
public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Backend\Model\Auth\Session $authSession, \Magento\User\Model\Resource\User\CollectionFactory $userCollectionFactory, array $data = [])
{
// _userCollectionFactory is used in parent::__construct
$this->_userCollectionFactory = $userCollectionFactory;
parent::__construct($context, $jsonEncoder, $authSession, $data);
}
示例7: __construct
/**
* @param Context $context
* @param EncoderInterface $jsonEncoder
* @param Session $authSession
* @param Manager $moduleManager
* @param CollectionFactory $collectionFactory
* @param Catalog $helperCatalog
* @param Data $catalogData
* @param Registry $registry
* @param InlineInterface $translateInline
* @param array $data
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(Context $context, EncoderInterface $jsonEncoder, Session $authSession, Manager $moduleManager, CollectionFactory $collectionFactory, Catalog $helperCatalog, Data $catalogData, Registry $registry, InlineInterface $translateInline, array $data = [])
{
$this->_moduleManager = $moduleManager;
$this->_collectionFactory = $collectionFactory;
$this->_helperCatalog = $helperCatalog;
$this->_catalogData = $catalogData;
$this->_coreRegistry = $registry;
$this->_translateInline = $translateInline;
parent::__construct($context, $jsonEncoder, $authSession, $data);
}
示例8: __construct
/**
* Constructor
*
* @param Registry $registry
* @param Context $context
* @param EncoderInterface $jsonEncoder
* @param Session $authSession
*/
public function __construct(Registry $registry, Context $context, EncoderInterface $jsonEncoder, Session $authSession)
{
$this->registry = $registry;
return parent::__construct($context, $jsonEncoder, $authSession);
}