PHP Class Yii2DebugPanel, yii2-debug

Он определяет как информация будет сохраняться и выводиться на просмотр.
Since: 1.1.13
Author: Roman Zhuravlev ([email protected])
Inheritance: extends CComponent
Exibir arquivo Open project: zhuravljov/yii2-debug Class Usage Examples

Public Properties

Property Type Description
$actions array of actions to add to the debug modules default controller. This array will be merged with all other panels actions property.
$filterData функция для обработки данных панели перед сохранением
$highlightCode подсветка кода. По умолчанию Yii2Debug::$highlightCode

Protected Properties

Property Type Description
$_logsCategories string
$_logsEnabled Collect log messages by Yii2DebugLogRoute.
$_logsLevels string

Public Methods

Method Description
__construct ( Yii2Debug $owner, string $id )
getComponent ( ) : Yii2Debug
getDetail ( ) : string
getId ( ) : string
getName ( ) : string
getOwner ( ) : Yii2Debug
getSummary ( ) : string
getTag ( ) : string
getUrl ( ) : string
init ( ) Debug panel initialization.
load ( array $data, null | string $tag = null )
render ( string $_viewFile_, array $_data_ = null ) : string Renders a view file
renderDetail ( string $caption, array $values ) : string Рендер блока с массивом key-value
renderTabs ( array $items ) : string Рендер панели с закладками
save ( ) : mixed Базовый метод для сбора отладочной информации

Protected Methods

Method Description
getData ( ) : array
getLogs ( ) : array Get logs from Yii2DebugLogRoute.
highlightPhp ( string $code ) : string Подсветка php-кода

Private Methods

Method Description
initLogRoute ( ) Initialize Yii2DebugLogRoute.

Method Details

__construct() public method

public __construct ( Yii2Debug $owner, string $id )
$owner Yii2Debug
$id string

getComponent() public method

Deprecation: will removed in v1.2
public getComponent ( ) : Yii2Debug
return Yii2Debug

getData() protected method

protected getData ( ) : array
return array

getDetail() public method

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

getId() public method

public getId ( ) : string
return string

getLogs() protected method

Get logs from Yii2DebugLogRoute.
protected getLogs ( ) : array
return array

getName() public method

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

getOwner() public method

public getOwner ( ) : Yii2Debug
return Yii2Debug

getSummary() public method

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

getTag() public method

public getTag ( ) : string
return string

getUrl() public method

public getUrl ( ) : string
return string URL страницы

highlightPhp() protected method

Подсветка php-кода
protected highlightPhp ( string $code ) : string
$code string
return string

init() public method

Debug panel initialization.
public init ( )

load() public method

public load ( array $data, null | string $tag = null )
$data array
$tag null | string

render() public method

Renders a view file
public render ( string $_viewFile_, array $_data_ = null ) : string
$_viewFile_ string view file
$_data_ array data to be extracted and made available to the view file
return string the rendering result

renderDetail() public method

Рендер блока с массивом key-value
Deprecation:
public renderDetail ( string $caption, array $values ) : string
$caption string
$values array
return string

renderTabs() public method

Рендер панели с закладками
Deprecation:
public renderTabs ( array $items ) : string
$items array
return string

save() public method

Базовый метод для сбора отладочной информации
public save ( ) : mixed
return mixed

Property Details

$_logsCategories protected_oe property

See also: Yii2DebugLogRoute::categories
protected string $_logsCategories
return string

$_logsEnabled protected_oe property

Collect log messages by Yii2DebugLogRoute.
protected $_logsEnabled

$_logsLevels protected_oe property

See also: Yii2DebugLogRoute::levels
protected string $_logsLevels
return string

$actions public_oe property

array of actions to add to the debug modules default controller. This array will be merged with all other panels actions property.
public $actions

$filterData public_oe property

функция для обработки данных панели перед сохранением
public $filterData

$highlightCode public_oe property

подсветка кода. По умолчанию Yii2Debug::$highlightCode
public $highlightCode