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
framework
DB
Profiler.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\DB
;
9
10
class
Profiler
extends
\Zend_Db_Profiler
11
{
17
protected
$_host
=
''
;
18
24
protected
$_type
=
''
;
25
31
private
$_lastQueryId =
null
;
32
39
public
function
setHost
($host)
40
{
41
$this->_host = $host;
42
return
$this;
43
}
44
51
public
function
setType
(
$type
)
52
{
53
$this->_type =
$type
;
54
return
$this;
55
}
56
64
public
function
queryStart
($queryText, $queryType =
null
)
65
{
66
$this->_lastQueryId = parent::queryStart($queryText, $queryType);
67
return
$this->_lastQueryId;
68
}
69
76
public
function
queryEnd
($queryId)
77
{
78
$this->_lastQueryId =
null
;
79
return
parent::queryEnd($queryId);
80
}
81
87
public
function
queryEndLast
()
88
{
89
if
($this->_lastQueryId !==
null
) {
90
return
$this->
queryEnd
($this->_lastQueryId);
91
}
92
93
return
self::IGNORED
;
94
}
95
}
Magento\Framework\DB\Profiler\setHost
setHost($host)
Definition:
Profiler.php:39
Magento\Framework\DB\Profiler\queryEnd
queryEnd($queryId)
Definition:
Profiler.php:76
Magento\Framework\DB\Profiler\queryEndLast
queryEndLast()
Definition:
Profiler.php:87
$type
$type
Definition:
item.phtml:13
Magento\Framework\DB
Definition:
AbstractMapper.php:6
Magento\Framework\DB\Profiler\$_host
$_host
Definition:
Profiler.php:17
Magento\Framework\DB\Profiler
Definition:
Profiler.php:10
Magento\Framework\DB\Profiler\$_type
$_type
Definition:
Profiler.php:24
Magento\Framework\DB\Profiler\queryStart
queryStart($queryText, $queryType=null)
Definition:
Profiler.php:64
Zend_Db_Profiler
Definition:
Profiler.php:31
Zend_Db_Profiler\IGNORED
const IGNORED
Definition:
Profiler.php:79
Magento\Framework\DB\Profiler\setType
setType($type)
Definition:
Profiler.php:51