HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
Yii2DbPanel Class Reference
Inheritance diagram for Yii2DbPanel:
Collaboration diagram for Yii2DbPanel:

Public Member Functions

 init ()
 getName ()
 getSummary ()
 getDetail ()
 formatSql ($message, $insertParams)
 highlightSql ($sql)
 save ()
 getExplainConnections ($query)
 messageByNum ($number)
- Public Member Functions inherited from Yii2DebugPanel
 __construct ($owner, $id)
 getOwner ()
 getComponent ()
 getId ()
 getTag ()
 getUrl ()
 load ($data, $tag=null)
 render ($_viewFile_, $_data_=null)
 renderDetail ($caption, $values)
 renderTabs ($items)

Static Public Member Functions

static getExplainQuery ($query, $driver)
static explain ($query, $connection)

Public Attributes

 $insertParamValues = true
 $canExplain = true
- Public Attributes inherited from Yii2DebugPanel
 $highlightCode
 $filterData

Protected Member Functions

 getQueriesInfo ()
 getResumeInfo ()
 getConnectionsInfo ()
 calculateTimings ()
 calculateResume ()
- Protected Member Functions inherited from Yii2DebugPanel
 getData ()
 highlightPhp ($code)
 getLogs ()

Private Member Functions

 compareResume ($a, $b)
 parseParamsSql ($params)
 insertParamsToSql ($query, $params)

Private Attributes

 $_timings
 $_resume
 $_hl

Additional Inherited Members

- Protected Attributes inherited from Yii2DebugPanel
 $_logsEnabled = false
 $_logsCategories = array()
 $_logsLevels = ''

Detailed Description

Definition at line 8 of file Yii2DbPanel.php.

Member Function Documentation

Yii2DbPanel::calculateResume ( )
protected

Группировка sql-запросов

Returns
array

Definition at line 158 of file Yii2DbPanel.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Yii2DbPanel::calculateTimings ( )
protected

Группировка времени выполнения sql-запросов

Returns
array

Definition at line 122 of file Yii2DbPanel.php.

Here is the caller graph for this function:

Yii2DbPanel::compareResume (   $a,
  $b 
)
private

Definition at line 181 of file Yii2DbPanel.php.

static Yii2DbPanel::explain (   $query,
  $connection 
)
static

Run explain procedure

Parameters
string$query
CDbConnection$connection
Returns
array

Definition at line 368 of file Yii2DbPanel.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Yii2DbPanel::formatSql (   $message,
  $insertParams 
)

Выделение sql-запроса из лога и подстановка параметров

Parameters
string$message
bool$insertParams
Returns
string

Definition at line 193 of file Yii2DbPanel.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Yii2DbPanel::getConnectionsInfo ( )
protected
Returns
array

Definition at line 100 of file Yii2DbPanel.php.

Here is the caller graph for this function:

Yii2DbPanel::getDetail ( )
Returns
string html-контент для вывода на страницу

Reimplemented from Yii2DebugPanel.

Definition at line 50 of file Yii2DbPanel.php.

Here is the call graph for this function:

Yii2DbPanel::getExplainConnections (   $query)

Return connection list for query

Parameters
string$query
Returns
array connection list

Definition at line 388 of file Yii2DbPanel.php.

static Yii2DbPanel::getExplainQuery (   $query,
  $driver 
)
static

Return explain procedure or null

Parameters
string$query
string$drivername
Returns
string|null

Definition at line 349 of file Yii2DbPanel.php.

Here is the caller graph for this function:

Yii2DbPanel::getName ( )
Returns
string название панели для вывода в меню

Reimplemented from Yii2DebugPanel.

Definition at line 30 of file Yii2DbPanel.php.

Yii2DbPanel::getQueriesInfo ( )
protected
Returns
array

Definition at line 65 of file Yii2DbPanel.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Yii2DbPanel::getResumeInfo ( )
protected
Returns
array

Definition at line 81 of file Yii2DbPanel.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Yii2DbPanel::getSummary ( )
Returns
string html-контент для вывода в дебаг-панель

Reimplemented from Yii2DebugPanel.

Definition at line 35 of file Yii2DbPanel.php.

Here is the call graph for this function:

Yii2DbPanel::highlightSql (   $sql)

Подсветка sql-кода

Parameters
string$sql
Returns
string

Definition at line 307 of file Yii2DbPanel.php.

Yii2DbPanel::init ( )

Debug panel initialization.

Reimplemented from Yii2DebugPanel.

Definition at line 22 of file Yii2DbPanel.php.

Yii2DbPanel::insertParamsToSql (   $query,
  $params 
)
private

Умная подстановка параметров в SQL-запрос.

Поиск параметров производится за пределами строк в кавычках ["'`]. Значения подставляются для параметров типа (:xxx, ?).

Parameters
string$query
array$params
Returns
string

Definition at line 250 of file Yii2DbPanel.php.

Here is the caller graph for this function:

Yii2DbPanel::messageByNum (   $number)
Parameters
int$number
Returns
string sql-query

Definition at line 403 of file Yii2DbPanel.php.

Here is the call graph for this function:

Yii2DbPanel::parseParamsSql (   $params)
private

Парсинг строки с параметрами типа (:xxx, ?)

Parameters
string$params
Returns
array key/value

Definition at line 211 of file Yii2DbPanel.php.

Here is the caller graph for this function:

Yii2DbPanel::save ( )

Базовый метод для сбора отладочной информации

Returns
mixed

Reimplemented from Yii2DebugPanel.

Definition at line 320 of file Yii2DbPanel.php.

Here is the call graph for this function:

Member Data Documentation

Yii2DbPanel::$_hl
private

Definition at line 300 of file Yii2DbPanel.php.

Yii2DbPanel::$_resume
private

Definition at line 152 of file Yii2DbPanel.php.

Yii2DbPanel::$_timings
private

Definition at line 116 of file Yii2DbPanel.php.

Yii2DbPanel::$canExplain = true

Definition at line 17 of file Yii2DbPanel.php.

Yii2DbPanel::$insertParamValues = true

Definition at line 13 of file Yii2DbPanel.php.


The documentation for this class was generated from the following file: