当前位置: 首页>>代码示例>>PHP>>正文


PHP Tabs::__construct方法代码示例

本文整理汇总了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);
 }
开发者ID:pradeep-wagento,项目名称:magento2,代码行数:16,代码来源:Tabs.php

示例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);
 }
开发者ID:pradeeprcs,项目名称:TestModule,代码行数:15,代码来源:Gridlists.php

示例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);
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:23,代码来源:Tabs.php

示例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);
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:13,代码来源:AbstractTabs.php

示例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);
 }
开发者ID:aiesh,项目名称:magento2,代码行数:12,代码来源:Tabs.php

示例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);
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:13,代码来源:Users.php

示例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);
 }
开发者ID:pradeep-wagento,项目名称:magento2,代码行数:23,代码来源:Tabs.php

示例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);
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:13,代码来源:Tabs.php


注:本文中的Magento\Backend\Block\Widget\Tabs::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。