8
8
/**
9
9
* Adminhtml products in carts report grid block
10
10
*
11
- * @author Magento Core Team <core@magentocommerce.com>
12
11
* @SuppressWarnings(PHPMD.DepthOfInheritance)
13
12
*/
14
13
class Grid extends \Magento \Reports \Block \Adminhtml \Grid \Shopcart
15
14
{
16
15
/**
17
- * @var \Magento\Reports\Model\ResourceModel\Quote\CollectionFactory
16
+ * @var \Magento\Reports\Model\ResourceModel\Quote\Item\ CollectionFactory
18
17
*/
19
18
protected $ quoteItemCollectionFactory ;
20
19
@@ -24,10 +23,12 @@ class Grid extends \Magento\Reports\Block\Adminhtml\Grid\Shopcart
24
23
protected $ queryResolver ;
25
24
26
25
/**
26
+ * Factory constructor
27
+ *
27
28
* @param \Magento\Backend\Block\Template\Context $context
28
29
* @param \Magento\Backend\Helper\Data $backendHelper
29
- * @param \Magento\Reports\Model\ResourceModel\Quote\Item\CollectionFactory $quoteItemCollectionFactory
30
30
* @param \Magento\Quote\Model\QueryResolver $queryResolver
31
+ * @param \Magento\Reports\Model\ResourceModel\Quote\Item\CollectionFactory $quoteItemCollectionFactory
31
32
* @param array $data
32
33
*/
33
34
public function __construct (
@@ -43,6 +44,8 @@ public function __construct(
43
44
}
44
45
45
46
/**
47
+ * Call Internal constructor
48
+ *
46
49
* @return void
47
50
*/
48
51
protected function _construct ()
@@ -52,6 +55,8 @@ protected function _construct()
52
55
}
53
56
54
57
/**
58
+ * Prepare collection
59
+ *
55
60
* @return \Magento\Backend\Block\Widget\Grid
56
61
*/
57
62
protected function _prepareCollection ()
@@ -64,6 +69,8 @@ protected function _prepareCollection()
64
69
}
65
70
66
71
/**
72
+ * Prepare columns
73
+ *
67
74
* @return \Magento\Backend\Block\Widget\Grid\Extended
68
75
*/
69
76
protected function _prepareColumns ()
@@ -141,6 +148,8 @@ protected function _prepareColumns()
141
148
}
142
149
143
150
/**
151
+ * Get Row Url
152
+ *
144
153
* @param \Magento\Framework\DataObject $row
145
154
*
146
155
* @return string
0 commit comments