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


PHP Extended::__construct方法代码示例

本文整理汇总了PHP中Magento\Backend\Block\Widget\Grid\Extended::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Extended::__construct方法的具体用法?PHP Extended::__construct怎么用?PHP Extended::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Magento\Backend\Block\Widget\Grid\Extended的用法示例。


在下文中一共展示了Extended::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\User\Model\RoleFactory $roleFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Framework\Registry $coreRegistry, \Magento\User\Model\RoleFactory $roleFactory, array $data = [])
 {
     parent::__construct($context, $backendHelper, $data);
     $this->_jsonEncoder = $jsonEncoder;
     $this->_coreRegistry = $coreRegistry;
     $this->_roleFactory = $roleFactory;
 }
开发者ID:Atlis,项目名称:docker-magento2,代码行数:15,代码来源:User.php

示例2: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Store\Model\WebsiteFactory $websiteFactory
  * @param \Magento\Eav\Model\Resource\Entity\Attribute\Set\CollectionFactory $setsFactory
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\Catalog\Model\Product\Type $type
  * @param \Magento\Catalog\Model\Product\Attribute\Source\Status $status
  * @param \Magento\Catalog\Model\Product\Visibility $visibility
  * @param \Magento\Framework\Module\Manager $moduleManager
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Store\Model\WebsiteFactory $websiteFactory, \YourCompanyName\BackendGrid\Model\Resource\ModelName\Collection $collectionFactory, \Magento\Framework\Module\Manager $moduleManager, array $data = [])
 {
     $this->_collectionFactory = $collectionFactory;
     $this->_websiteFactory = $websiteFactory;
     $this->moduleManager = $moduleManager;
     parent::__construct($context, $backendHelper, $data);
 }
开发者ID:santosh142,项目名称:magento2-sample-modules,代码行数:21,代码来源:Grid.php

示例3: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $eavAttSetCollection
  * @param \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $cpCollection
  * @param \Magento\Catalog\Model\Product\Type $catalogType
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $eavAttSetCollection, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $cpCollection, \Magento\Catalog\Model\Product\Type $catalogType, array $data = [])
 {
     $this->_catalogType = $catalogType;
     $this->_cpCollection = $cpCollection;
     $this->_eavAttSetCollection = $eavAttSetCollection;
     parent::__construct($context, $backendHelper, $data);
 }
开发者ID:pradeep-wagento,项目名称:magento2,代码行数:15,代码来源:Sku.php

示例4: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Index\Model\Resource\Process\CollectionFactory $factory
  * @param \Magento\Index\Model\Process $indexProcess
  * @param \Magento\Index\Model\EventRepository $eventRepository
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Index\Model\Resource\Process\CollectionFactory $factory, \Magento\Index\Model\Process $indexProcess, \Magento\Index\Model\EventRepository $eventRepository, array $data = array())
 {
     parent::__construct($context, $backendHelper, $data);
     $this->_eventRepository = $eventRepository;
     $this->_indexProcess = $indexProcess;
     $this->_collectionFactory = $factory;
 }
开发者ID:aiesh,项目名称:magento2,代码行数:15,代码来源:Grid.php

示例5: __construct

 /**
  * Information constructor.
  *
  * @param \Dotdigitalgroup\Email\Model\Apiconnector\Test $test
  * @param \Magento\Backend\Block\Template\Context        $context
  * @param \Magento\Backend\Helper\Data                   $backendHelper
  * @param \Dotdigitalgroup\Email\Helper\Data             $helper
  * @param array                                          $data
  */
 public function __construct(\Dotdigitalgroup\Email\Model\Apiconnector\Test $test, \Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Dotdigitalgroup\Email\Helper\Data $helper, \Magento\Framework\App\ProductMetadataFactory $productMetadata, array $data = [])
 {
     $this->productMetadata = $productMetadata->create();
     $this->test = $test;
     $this->data = $helper;
     parent::__construct($context, $backendHelper, $data);
 }
开发者ID:dotmailer,项目名称:dotmailer-magento2-extension,代码行数:16,代码来源:Information.php

示例6: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory $collectionFactory
  * @param \Magento\Sales\Helper\Reorder $salesReorder
  * @param \Magento\Framework\Registry $coreRegistry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory $collectionFactory, \Magento\Sales\Helper\Reorder $salesReorder, \Magento\Framework\Registry $coreRegistry, array $data = [])
 {
     $this->_coreRegistry = $coreRegistry;
     $this->_salesReorder = $salesReorder;
     $this->_collectionFactory = $collectionFactory;
     parent::__construct($context, $backendHelper, $data);
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:15,代码来源:Orders.php

示例7: __construct

 /**
  * constructor
  *
  * @param \Mageplaza\Blog\Model\ResourceModel\Post\CollectionFactory $postCollectionFactory
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Mageplaza\Blog\Model\PostFactory $postFactory
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param array $data
  */
 public function __construct(\Mageplaza\Blog\Model\ResourceModel\Post\CollectionFactory $postCollectionFactory, \Magento\Framework\Registry $coreRegistry, \Mageplaza\Blog\Model\PostFactory $postFactory, \Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, array $data = [])
 {
     $this->postCollectionFactory = $postCollectionFactory;
     $this->coreRegistry = $coreRegistry;
     $this->postFactory = $postFactory;
     parent::__construct($context, $backendHelper, $data);
 }
开发者ID:mageplaza,项目名称:magento-2-blog-extension,代码行数:17,代码来源:Post.php

示例8: __construct

 /**
  * @param TemplateContext $context
  * @param BackendHelper $backendHelper
  * @param CollectionFactory $collectionFactory
  * @param Registry $coreRegistry
  * @param BillingAgreementResource $billingAgreementResource
  * @param array $data
  */
 public function __construct(TemplateContext $context, BackendHelper $backendHelper, CollectionFactory $collectionFactory, Registry $coreRegistry, BillingAgreementResource $billingAgreementResource, array $data = [])
 {
     $this->coreRegistry = $coreRegistry;
     $this->collectionFactory = $collectionFactory;
     $this->billingAgreementResource = $billingAgreementResource;
     parent::__construct($context, $backendHelper, $data);
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:15,代码来源:Orders.php

示例9: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Framework\Module\Manager $moduleManager
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Dotdigitalgroup\Email\Model\Adminhtml\Source\Contact\ImportedFactory $importedFactory, \Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Dotdigitalgroup\Email\Model\Resource\Wishlist\CollectionFactory $gridFactory, \Magento\Framework\Module\Manager $moduleManager, array $data = [])
 {
     $this->_importedFactory = $importedFactory;
     $this->_wishlistFactory = $gridFactory;
     $this->moduleManager = $moduleManager;
     parent::__construct($context, $backendHelper, $data);
 }
开发者ID:ThomasNegeli,项目名称:dotmailer-magento2-extension,代码行数:15,代码来源:Grid.php

示例10: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Cms\Model\Page $cmsPage
  * @param \Magento\Cms\Model\ResourceModel\Page\CollectionFactory $collectionFactory
  * @param \Magento\Framework\View\Model\PageLayout\Config\BuilderInterface $pageLayoutBuilder
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Cms\Model\Page $cmsPage, \Magento\Cms\Model\ResourceModel\Page\CollectionFactory $collectionFactory, \Magento\Framework\View\Model\PageLayout\Config\BuilderInterface $pageLayoutBuilder, array $data = [])
 {
     $this->_collectionFactory = $collectionFactory;
     $this->_cmsPage = $cmsPage;
     $this->pageLayoutBuilder = $pageLayoutBuilder;
     parent::__construct($context, $backendHelper, $data);
 }
开发者ID:tingyeeh,项目名称:magento2,代码行数:15,代码来源:Grid.php

示例11: __construct

 /**
  * [__construct description].
  *
  * @param \Magento\Backend\Block\Template\Context     $context            [description]
  * @param \Magento\Backend\Helper\Data                $backendHelper      [description]
  * @param \Magento\Framework\Data\Collection          $dataCollection     [description]
  * @param \Magestore\Bannerslider\Helper\Data         $bannersliderHelper [description]
  * @param array                                       $data               [description]
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\Data\CollectionFactory $collectionFactory, \Magento\Framework\DataObjectFactory $objectFactory, \Magestore\Bannerslider\Helper\Data $bannersliderHelper, array $data = [])
 {
     $this->_bannersliderHelper = $bannersliderHelper;
     $this->_collectionFactory = $collectionFactory;
     $this->_objectFactory = $objectFactory;
     parent::__construct($context, $backendHelper, $data);
 }
开发者ID:OlgaBurtyka,项目名称:m2,代码行数:16,代码来源:Grid.php

示例12: __construct

 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Tuna\BannerSlider\Model\ResourceModel\Slider\CollectionFactory $sliderCollectionFactory, \Tuna\BannerSlider\Helper\Data $bannersliderHelper, \Magento\Framework\View\Model\PageLayout\Config\BuilderInterface $pageLayoutBuilder, array $data = [])
 {
     $this->_sliderCollectionFactory = $sliderCollectionFactory;
     $this->_bannersliderHelper = $bannersliderHelper;
     $this->pageLayoutBuilder = $pageLayoutBuilder;
     parent::__construct($context, $backendHelper, $data);
 }
开发者ID:mrtuvn,项目名称:m2ce.dev,代码行数:7,代码来源:Grid.php

示例13: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Authorization\Model\Resource\Role\CollectionFactory $userRolesFactory
  * @param \Magento\Framework\Registry $coreRegistry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Authorization\Model\Resource\Role\CollectionFactory $userRolesFactory, \Magento\Framework\Registry $coreRegistry, array $data = array())
 {
     $this->_jsonEncoder = $jsonEncoder;
     $this->_userRolesFactory = $userRolesFactory;
     $this->_coreRegistry = $coreRegistry;
     parent::__construct($context, $backendHelper, $data);
 }
开发者ID:aiesh,项目名称:magento2,代码行数:15,代码来源:Roles.php

示例14: __construct

 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Reports\Model\Resource\Report\Collection\Factory $resourceFactory
  * @param \Magento\Reports\Model\Grouped\CollectionFactory $collectionFactory
  * @param \Magento\Reports\Helper\Data $reportsData
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Reports\Model\Resource\Report\Collection\Factory $resourceFactory, \Magento\Reports\Model\Grouped\CollectionFactory $collectionFactory, \Magento\Reports\Helper\Data $reportsData, array $data = array())
 {
     $this->_resourceFactory = $resourceFactory;
     $this->_collectionFactory = $collectionFactory;
     $this->_reportsData = $reportsData;
     parent::__construct($context, $backendHelper, $data);
 }
开发者ID:aiesh,项目名称:magento2,代码行数:15,代码来源:AbstractGrid.php

示例15: __construct

 /**
  * Constructor
  *
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Backend\Helper\Data $backendHelper
  * @param \Magento\Sales\Model\QuoteFactory $quoteFactory
  * @param \Magento\Framework\Data\CollectionFactory $dataCollectionFactory
  * @param \Magento\Framework\Registry $coreRegistry
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Backend\Helper\Data $backendHelper, \Magento\Sales\Model\QuoteFactory $quoteFactory, \Magento\Framework\Data\CollectionFactory $dataCollectionFactory, \Magento\Framework\Registry $coreRegistry, array $data = [])
 {
     $this->_dataCollectionFactory = $dataCollectionFactory;
     $this->_coreRegistry = $coreRegistry;
     $this->_quoteFactory = $quoteFactory;
     parent::__construct($context, $backendHelper, $data);
 }
开发者ID:aiesh,项目名称:magento2,代码行数:17,代码来源:Cart.php


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