當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。