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


PHP Action::__construct方法代码示例

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


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

示例1: __construct

 /**
  * @param Context $context
  * @param DesignConfigRepository $designConfigRepository
  * @param ConfigFactory $configFactory
  * @param DataPersistorInterface $dataPersistor
  */
 public function __construct(Context $context, DesignConfigRepository $designConfigRepository, ConfigFactory $configFactory, DataPersistorInterface $dataPersistor)
 {
     $this->designConfigRepository = $designConfigRepository;
     $this->configFactory = $configFactory;
     $this->dataPersistor = $dataPersistor;
     parent::__construct($context);
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:13,代码来源:Save.php

示例2: __construct

 /**
  * @param Context $context
  * @param Registry $coreRegistry
  * @param PageFactory $resultPageFactory
  * @param IpFactory $IpFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Framework\View\Result\PageFactory $resultPageFactory, \Rapidmage\Firewall\Model\WhiteipFactory $IpFactory)
 {
     parent::__construct($context);
     $this->_coreRegistry = $coreRegistry;
     $this->_resultPageFactory = $resultPageFactory;
     $this->_ipFactory = $IpFactory;
 }
开发者ID:DRAJI,项目名称:Rapidmage,代码行数:13,代码来源:Delete.php

示例3: __construct

 /**
  * @param Action\Context $context
  * @param Registry $registry
  * @param InvoiceSender $invoiceSender
  * @param ShipmentSender $shipmentSender
  */
 public function __construct(Action\Context $context, Registry $registry, InvoiceSender $invoiceSender, ShipmentSender $shipmentSender)
 {
     $this->registry = $registry;
     $this->invoiceSender = $invoiceSender;
     $this->shipmentSender = $shipmentSender;
     parent::__construct($context);
 }
开发者ID:opexsw,项目名称:magento2,代码行数:13,代码来源:Save.php

示例4: __construct

 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Stdlib\DateTime\Filter\Date $dateFilter
  * @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
  * @param [] $reportTypes
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Stdlib\DateTime\Filter\Date $dateFilter, \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory, array $reportTypes)
 {
     $this->_dateFilter = $dateFilter;
     $this->reportTypes = $reportTypes;
     $this->resultRedirectFactory = $resultRedirectFactory;
     parent::__construct($context);
 }
开发者ID:shabbirvividads,项目名称:magento2,代码行数:13,代码来源:Statistics.php

示例5: __construct

 /**
  * @param Action\Context $context
  * @param \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader
  */
 public function __construct(
     Action\Context $context,
     \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader
 ) {
     $this->shipmentLoader = $shipmentLoader;
     parent::__construct($context);
 }
开发者ID:nblair,项目名称:magescotch,代码行数:11,代码来源:RemoveTrack.php

示例6: __construct

 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Registry $coreRegistry
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Webshopapps\Matrixrate\Model\ResourceModel\Carrier\Matrixrate $matrixRate, \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory)
 {
     $this->_coreRegistry = $coreRegistry;
     $this->_matrixRate = $matrixRate;
     $this->resultJsonFactory = $resultJsonFactory;
     parent::__construct($context);
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:11,代码来源:Index.php

示例7: __construct

 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\App\Response\Http\FileFactory $fileFactory
  * @param \Magento\Framework\Stdlib\DateTime\Filter\Date $dateFilter
  * @param DateTimeFormatterInterface $dateTimeFormatter
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\App\Response\Http\FileFactory $fileFactory, \Magento\Framework\Stdlib\DateTime\Filter\Date $dateFilter, DateTimeFormatterInterface $dateTimeFormatter)
 {
     parent::__construct($context);
     $this->_fileFactory = $fileFactory;
     $this->_dateFilter = $dateFilter;
     $this->dateTimeFormatter = $dateTimeFormatter;
 }
开发者ID:whoople,项目名称:magento2-testing,代码行数:13,代码来源:AbstractReport.php

示例8: __construct

 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Downloadable\Model\Link $link
  * @param \Magento\Downloadable\Model\Sample $sample
  * @param \Magento\Downloadable\Helper\File $fileHelper
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Downloadable\Model\Link $link, \Magento\Downloadable\Model\Sample $sample, \Magento\Downloadable\Helper\File $fileHelper)
 {
     $this->_link = $link;
     $this->_sample = $sample;
     $this->_fileHelper = $fileHelper;
     parent::__construct($context);
 }
开发者ID:aiesh,项目名称:magento2,代码行数:13,代码来源:File.php

示例9: __construct

 /**
  * constructor
  *
  * @param \Mageplaza\Blog\Model\PostFactory $postFactory
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Backend\Model\View\Result\RedirectFactory $resultRedirectFactory
  * @param \Magento\Backend\App\Action\Context $context
  */
 public function __construct(\Mageplaza\Blog\Model\PostFactory $postFactory, \Magento\Framework\Registry $coreRegistry, \Magento\Backend\App\Action\Context $context)
 {
     $this->postFactory = $postFactory;
     $this->coreRegistry = $coreRegistry;
     //$this->resultRedirectFactory = $resultRedirectFactory;
     parent::__construct($context);
 }
开发者ID:mageplaza,项目名称:magento-2-blog-extension,代码行数:15,代码来源:Post.php

示例10: __construct

 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory
  */
 public function __construct(
     \Magento\Backend\App\Action\Context $context,
     \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory
 ) {
     parent::__construct($context);
     $this->resultLayoutFactory = $resultLayoutFactory;
 }
开发者ID:nblair,项目名称:magescotch,代码行数:11,代码来源:Grid.php

示例11: __construct

 /**
  * @param Action\Context $context
  * @param \Magento\Sales\Controller\Adminhtml\Order\InvoiceLoader $invoiceLoader
  * @param InvoiceCommentSender $invoiceCommentSender
  * @param ShipmentSender $shipmentSender
  */
 public function __construct(Action\Context $context, \Magento\Sales\Controller\Adminhtml\Order\InvoiceLoader $invoiceLoader, InvoiceCommentSender $invoiceCommentSender, ShipmentSender $shipmentSender)
 {
     $this->invoiceLoader = $invoiceLoader;
     $this->invoiceCommentSender = $invoiceCommentSender;
     $this->shipmentSender = $shipmentSender;
     parent::__construct($context);
 }
开发者ID:aiesh,项目名称:magento2,代码行数:13,代码来源:Save.php

示例12: __construct

 /**
  * @param Action\Context $context
  * @param \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader
  * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
  * @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
  */
 public function __construct(Action\Context $context, \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader, \Magento\Framework\View\Result\PageFactory $resultPageFactory, \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory)
 {
     $this->shipmentLoader = $shipmentLoader;
     $this->resultPageFactory = $resultPageFactory;
     $this->resultForwardFactory = $resultForwardFactory;
     parent::__construct($context);
 }
开发者ID:kidaa30,项目名称:magento2-platformsh,代码行数:13,代码来源:View.php

示例13: __construct

 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param Registry $coreRegistry
  * @param PageFactory $resultPageFactory
  * @param LayoutFactory $resultLayoutFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, Registry $coreRegistry, PageFactory $resultPageFactory, LayoutFactory $resultLayoutFactory)
 {
     $this->_coreRegistry = $coreRegistry;
     $this->resultPageFactory = $resultPageFactory;
     $this->resultLayoutFactory = $resultLayoutFactory;
     parent::__construct($context);
 }
开发者ID:nja78,项目名称:magento2,代码行数:13,代码来源:Transactions.php

示例14: __construct

 /**
  * Initialize Group Controller
  *
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
  * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory, \Magento\Framework\View\Result\PageFactory $resultPageFactory)
 {
     $this->_coreRegistry = $coreRegistry;
     parent::__construct($context);
     $this->resultForwardFactory = $resultForwardFactory;
     $this->resultPageFactory = $resultPageFactory;
 }
开发者ID:itmyprofession,项目名称:M2_Sample,代码行数:15,代码来源:Edit.php

示例15: __construct

 /**
  * @param Action\Context $context
  * @param \Magento\Framework\Json\Helper\Data $jsonHelper
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $collectionFactory
  */
 public function __construct(Action\Context $context, \Magento\Framework\Json\Helper\Data $jsonHelper, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\ResourceModel\Product\Attribute\CollectionFactory $collectionFactory)
 {
     $this->jsonHelper = $jsonHelper;
     $this->storeManager = $storeManager;
     $this->collectionFactory = $collectionFactory;
     parent::__construct($context);
 }
开发者ID:nblair,项目名称:magescotch,代码行数:13,代码来源:GetAttributes.php


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