Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-sales
Controller
Adminhtml
Order
CommentsHistory.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Sales\Controller\Adminhtml\Order
;
8
9
use
Magento\Framework\App\Action\HttpGetActionInterface
;
10
use
Magento\Backend\App\Action
;
11
use
Magento\Framework\App\Action\HttpPostActionInterface
;
12
use
Magento\Sales\Api\OrderManagementInterface
;
13
use
Magento\Sales\Api\OrderRepositoryInterface
;
14
use Psr\Log\LoggerInterface;
15
use
Magento\Sales\Controller\Adminhtml\Order
as
OrderAction
;
16
22
class
CommentsHistory
extends
OrderAction
implements
HttpGetActionInterface
,
HttpPostActionInterface
23
{
27
protected
$layoutFactory
;
28
46
public
function
__construct
(
47
Action
\
Context
$context,
48
\
Magento
\Framework\
Registry
$coreRegistry,
49
\
Magento
\Framework\
App
\
Response
\Http\
FileFactory
$fileFactory,
50
\
Magento
\Framework\Translate\
InlineInterface
$translateInline,
51
\
Magento
\Framework\
View
\Result\
PageFactory
$resultPageFactory
,
52
\
Magento
\Framework\Controller\Result\
JsonFactory
$resultJsonFactory
,
53
\
Magento
\Framework\
View
\Result\
LayoutFactory
$resultLayoutFactory
,
54
\
Magento
\Framework\Controller\Result\RawFactory
$resultRawFactory
,
55
OrderManagementInterface
$orderManagement
,
56
OrderRepositoryInterface
$orderRepository
,
57
LoggerInterface
$logger
,
58
\
Magento
\Framework\
View
\
LayoutFactory
$layoutFactory
59
) {
60
$this->layoutFactory =
$layoutFactory
;
61
parent::__construct(
62
$context,
63
$coreRegistry,
64
$fileFactory,
65
$translateInline,
66
$resultPageFactory
,
67
$resultJsonFactory
,
68
$resultLayoutFactory
,
69
$resultRawFactory
,
70
$orderManagement
,
71
$orderRepository
,
72
$logger
73
);
74
}
75
81
public
function
execute
()
82
{
83
$this->
_initOrder
();
84
$layout = $this->layoutFactory->create();
85
$html = $layout->createBlock(\
Magento
\Sales\Block\Adminhtml\
Order
\View\Tab\History::class)
86
->toHtml();
87
$this->_translateInline->processResponseBody($html);
89
$resultRaw = $this->resultRawFactory->create();
90
$resultRaw->setContents($html);
91
return
$resultRaw;
92
}
93
}
Magento\Framework\App\Response\Http
Definition:
FileFactory.php:7
Magento\Sales\Controller\Adminhtml\Order\_initOrder
_initOrder()
Definition:
Order.php:151
Magento\Framework\App
Magento\Framework\View\Result\LayoutFactory
Definition:
LayoutFactory.php:15
Magento\Framework\App\Response\Http\FileFactory
Definition:
FileFactory.php:11
Magento\Framework\App\Action\HttpGetActionInterface
Definition:
HttpGetActionInterface.php:16
Magento\Framework\Controller\Result\JsonFactory
Definition:
JsonFactory.php:12
Magento\Sales\Api\OrderManagementInterface
Definition:
OrderManagementInterface.php:18
Magento\Sales\Controller\Adminhtml\Order\$resultPageFactory
$resultPageFactory
Definition:
Order.php:58
Magento\Framework\App\ActionInterface\execute
execute()
Magento\Framework\View\Result\PageFactory
Definition:
PageFactory.php:19
Magento\Backend\App\Action
Definition:
Action.php:17
Magento\Sales\Controller\Adminhtml\Order\$resultJsonFactory
$resultJsonFactory
Definition:
Order.php:63
Magento\Sales\Controller\Adminhtml\Order\View
Definition:
View.php:10
Magento\Sales\Controller\Adminhtml\Order\$orderManagement
$orderManagement
Definition:
Order.php:78
Magento\Sales\Controller\Adminhtml\Order\$orderRepository
$orderRepository
Definition:
Order.php:83
Magento\Sales\Controller\Adminhtml\Order\$logger
$logger
Definition:
Order.php:88
Magento
Magento\Sales\Controller\Adminhtml\Order
Definition:
Order.php:22
Magento\Sales\Controller\Adminhtml\Order
Definition:
AuthorizationMock.php:6
Magento\Backend\App\Action\Context
Definition:
Context.php:25
Magento\Framework\App\Action\HttpPostActionInterface
Definition:
HttpPostActionInterface.php:16
Magento\Sales\Controller\Adminhtml\Order\$resultRawFactory
$resultRawFactory
Definition:
Order.php:73
Magento\Sales\Controller\Adminhtml\Order\CommentsHistory\$layoutFactory
$layoutFactory
Definition:
CommentsHistory.php:27
Magento\Framework\Registry
Definition:
Registry.php:18
Magento\Backend\App\Action
Definition:
Context.php:6
Magento\Sales\Controller\Adminhtml\Order\CommentsHistory
Definition:
CommentsHistory.php:22
Magento\Sales\Controller\Adminhtml\Order\CommentsHistory\__construct
__construct(Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Framework\App\Response\Http\FileFactory $fileFactory, \Magento\Framework\Translate\InlineInterface $translateInline, \Magento\Framework\View\Result\PageFactory $resultPageFactory, \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory, \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory, \Magento\Framework\Controller\Result\RawFactory $resultRawFactory, OrderManagementInterface $orderManagement, OrderRepositoryInterface $orderRepository, LoggerInterface $logger, \Magento\Framework\View\LayoutFactory $layoutFactory)
Definition:
CommentsHistory.php:46
Magento\Framework\Translate\InlineInterface
Definition:
InlineInterface.php:14
Magento\Sales\Controller\Adminhtml\Order\$resultLayoutFactory
$resultLayoutFactory
Definition:
Order.php:68
Magento\Sales\Api\OrderRepositoryInterface
Definition:
OrderRepositoryInterface.php:17