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-analytics
ReportXml
Query.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Analytics\ReportXml
;
7
8
use
Magento\Framework\DB\Select
;
9
13
class
Query
implements
\JsonSerializable
14
{
18
private
$select;
19
23
private
$selectHydrator;
24
28
private
$connectionName;
29
33
private
$config;
34
43
public
function
__construct
(
44
Select
$select,
45
SelectHydrator
$selectHydrator,
46
$connectionName,
47
$config
48
) {
49
$this->select =
$select
;
50
$this->connectionName = $connectionName;
51
$this->selectHydrator = $selectHydrator;
52
$this->config = $config;
53
}
54
58
public
function
getSelect
()
59
{
60
return
$this->select;
61
}
62
66
public
function
getConnectionName
()
67
{
68
return
$this->connectionName;
69
}
70
74
public
function
getConfig
()
75
{
76
return
$this->config;
77
}
78
85
public
function
jsonSerialize
()
86
{
87
return
[
88
'connectionName'
=> $this->
getConnectionName
(),
89
'select_parts'
=> $this->selectHydrator->extract($this->
getSelect
()),
90
'config'
=> $this->
getConfig
()
91
];
92
}
93
}
Magento\Framework\DB\Select
Definition:
Select.php:33
Magento\Analytics\ReportXml\Query\jsonSerialize
jsonSerialize()
Definition:
Query.php:85
Magento\Analytics\ReportXml\Query
Definition:
Query.php:13
Magento\Analytics\ReportXml\Query\getConnectionName
getConnectionName()
Definition:
Query.php:66
$select
$select
Definition:
catalog_rule_10_off_not_logged_rollback.php:14
Magento\Analytics\ReportXml\Query\getConfig
getConfig()
Definition:
Query.php:74
Magento\Analytics\ReportXml\Query\__construct
__construct(Select $select, SelectHydrator $selectHydrator, $connectionName, $config)
Definition:
Query.php:43
Magento\Analytics\ReportXml\Query\getSelect
getSelect()
Definition:
Query.php:58
Magento\Analytics\ReportXml\SelectHydrator
Definition:
SelectHydrator.php:16
Magento\Analytics\ReportXml
Magento\Framework\DB\Select
Definition:
ColumnsRenderer.php:6