當前位置: 首頁>>代碼示例>>PHP>>正文


PHP App\Action類代碼示例

本文整理匯總了PHP中Magento\Backend\App\Action的典型用法代碼示例。如果您正苦於以下問題:PHP Action類的具體用法?PHP Action怎麽用?PHP Action使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Action類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Tax\Api\TaxRuleRepositoryInterface $ruleService
  * @param \Magento\Tax\Api\Data\TaxRuleInterfaceFactory $taxRuleDataObjectFactory
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Tax\Api\TaxRuleRepositoryInterface $ruleService, \Magento\Tax\Api\Data\TaxRuleInterfaceFactory $taxRuleDataObjectFactory)
 {
     $this->_coreRegistry = $coreRegistry;
     $this->ruleService = $ruleService;
     $this->taxRuleDataObjectFactory = $taxRuleDataObjectFactory;
     parent::__construct($context);
 }
開發者ID:pradeep-wagento,項目名稱:magento2,代碼行數:13,代碼來源:Rule.php

示例2: __construct

 /**
  * @param Action\Context $context
  * @param \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader
  * @param ShipmentCommentSender $shipmentCommentSender
  * @param LayoutFactory $resultLayoutFactory
  */
 public function __construct(Action\Context $context, \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader, ShipmentCommentSender $shipmentCommentSender, LayoutFactory $resultLayoutFactory)
 {
     $this->shipmentLoader = $shipmentLoader;
     $this->shipmentCommentSender = $shipmentCommentSender;
     $this->resultLayoutFactory = $resultLayoutFactory;
     parent::__construct($context);
 }
開發者ID:opexsw,項目名稱:magento2,代碼行數:13,代碼來源:AddComment.php

示例3: __construct

 /**
  * @param Action\Context $context
  * @param \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader
  * @param \Magento\Shipping\Model\Shipping\LabelGenerator $labelGenerator
  * @param ShipmentSender $shipmentSender
  */
 public function __construct(Action\Context $context, \Magento\Shipping\Controller\Adminhtml\Order\ShipmentLoader $shipmentLoader, \Magento\Shipping\Model\Shipping\LabelGenerator $labelGenerator, ShipmentSender $shipmentSender)
 {
     $this->shipmentLoader = $shipmentLoader;
     $this->labelGenerator = $labelGenerator;
     $this->shipmentSender = $shipmentSender;
     parent::__construct($context);
 }
開發者ID:Doability,項目名稱:magento2dev,代碼行數:13,代碼來源:Save.php

示例4: __construct

 /**
  * @param \Magento\Backend\App\Action\Context $context
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Tax\Model\Calculation\Rate\Converter $taxRateConverter
  * @param \Magento\Tax\Api\TaxRateRepositoryInterface $taxRateRepository
  */
 public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Tax\Model\Calculation\Rate\Converter $taxRateConverter, \Magento\Tax\Api\TaxRateRepositoryInterface $taxRateRepository)
 {
     $this->_coreRegistry = $coreRegistry;
     $this->_taxRateConverter = $taxRateConverter;
     $this->_taxRateRepository = $taxRateRepository;
     parent::__construct($context);
 }
開發者ID:Doability,項目名稱:magento2dev,代碼行數:13,代碼來源:Rate.php

示例5: __construct

 /**
  * @param Action\Context $context
  * @param Product\Initialization\Helper $initializationHelper
  * @param Product\Builder $productBuilder
  * @param AttributeFactory $attributeFactory
  */
 public function __construct(Action\Context $context, Product\Initialization\Helper $initializationHelper, Product\Builder $productBuilder, AttributeFactory $attributeFactory)
 {
     $this->initializationHelper = $initializationHelper;
     $this->productBuilder = $productBuilder;
     $this->attributeFactory = $attributeFactory;
     parent::__construct($context);
 }
開發者ID:aiesh,項目名稱:magento2,代碼行數:13,代碼來源:Index.php

示例6: __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

示例7: __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

示例8: __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

示例9: __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

示例10: __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

示例11: __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

示例12: __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

示例13: __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

示例14: __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

示例15: __construct

 /**
  * @param Action\Context $context
  * @param Registry $registry
  * @param PageFactory $resultPageFactory
  * @param InvoiceService $invoiceService
  */
 public function __construct(Action\Context $context, Registry $registry, PageFactory $resultPageFactory, InvoiceService $invoiceService)
 {
     $this->registry = $registry;
     $this->resultPageFactory = $resultPageFactory;
     parent::__construct($context);
     $this->invoiceService = $invoiceService;
 }
開發者ID:Doability,項目名稱:magento2dev,代碼行數:13,代碼來源:NewAction.php


注:本文中的Magento\Backend\App\Action類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。