ChainedMonitor
实现 QueryMonitorInterface允许执行多个监视器的链式查询监视器。
| 自 |
2.0.0 |
|---|---|
| 包 |
Joomla 框架 |
方法
addMonitor
向链中注册监视器。
addMonitor(\Joomla\Database\QueryMonitorInterface monitor) :
startQuery
对查询开始进行操作。
startQuery( sql, object[]|null boundParams = null) :
| 自 |
2.0.0 |
|---|
参数
- sql
string要执行的 SQL。- boundParams
array<string|int, object>|null与查询一起使用的绑定参数列表。每个项目都是一个对象,包含:value、dataType
响应
void
stopQuery
对查询停止进行操作。
stopQuery() :
| 自 |
2.0.0 |
|---|
响应
void