PHP Класс Yii2Debug, yii2-debug

С версии: 1.1.13
Автор: Roman Zhuravlev ([email protected])
Наследование: extends CApplicationComponent
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$accessExpression Additional php expression for access evaluation.
$allowedIPs the list of IPs that are allowed to access this module. Each array element represents a single IP filter which can be either an IP address or an address with wildcard (e.g. 192.168.0.*) to represent a network segment. The default value is ['127.0.0.1', '::1'], which means the module can only be accessed by localhost.
$enabled enable/disable component in application.
$hiddenConfigOptions list of unsecure component options (like login, passwords, secret keys) that will be hidden in application configuration page.
$highlightCode highlight code in debug logs.
$historySize the maximum number of debug data files to keep. If there are more files generated, the oldest ones will be removed.
$internalUrls use nice route rules in debug module.
$logPath the directory storing the debugger data files. This can be specified using a path alias.
$moduleId module ID for viewing stored debug logs.
$panels list debug panels. The array keys are the panel IDs, and values are the corresponding panel class names or configuration arrays. This will be merged with ::corePanels(). You may reconfigure a core panel via this property by using the same panel ID. You may also disable a core panel by setting it to be false in this property.
$showConfig show brief application configuration.

Открытые методы

Метод Описание
checkAccess ( ) : boolean Check access rights.
dump ( mixed $data ) Dump variable to debug log.
getLock ( string $tag ) : boolean
getTag ( ) : string
init ( ) Panel initialization.
prepareData ( mixed $data ) : array Convert data to plain array in recursive manner.
setLock ( string $tag, boolean $value )

Защищенные методы

Метод Описание
corePanels ( ) : array
coreUrlRules ( )
initToolbar ( ) Register debug panel scripts.
onEndRequest ( CEvent $event )
processDebug ( ) Log processing routine.
resizeHistory ( &$manifest ) Debug files rotation according to {@link ::$historySize}.

Приватные методы

Метод Описание
updateIndexFile ( string $indexFile, array $summary ) Updates index file with summary log data

Описание методов

checkAccess() публичный Метод

Check access rights.
public checkAccess ( ) : boolean
Результат boolean

corePanels() защищенный Метод

protected corePanels ( ) : array
Результат array default panels

coreUrlRules() защищенный Метод

protected coreUrlRules ( )

dump() публичный статический Метод

Dump variable to debug log.
public static dump ( mixed $data )
$data mixed

getLock() публичный Метод

public getLock ( string $tag ) : boolean
$tag string
Результат boolean

getTag() публичный Метод

public getTag ( ) : string
Результат string current page tag

init() публичный Метод

Generate unique tag for page. Attach panels, log watcher. Register scripts for printing debug panel.
public init ( )

initToolbar() защищенный Метод

Register debug panel scripts.
protected initToolbar ( )

onEndRequest() защищенный Метод

protected onEndRequest ( CEvent $event )
$event CEvent

prepareData() публичный статический Метод

Convert data to plain array in recursive manner.
public static prepareData ( mixed $data ) : array
$data mixed
Результат array

processDebug() защищенный Метод

Log processing routine.
protected processDebug ( )

resizeHistory() защищенный Метод

Debug files rotation according to {@link ::$historySize}.
protected resizeHistory ( &$manifest )
$manifest

setLock() публичный Метод

public setLock ( string $tag, boolean $value )
$tag string
$value boolean

Описание свойств

$accessExpression публичное свойство

Additional php expression for access evaluation.
public $accessExpression

$allowedIPs публичное свойство

the list of IPs that are allowed to access this module. Each array element represents a single IP filter which can be either an IP address or an address with wildcard (e.g. 192.168.0.*) to represent a network segment. The default value is ['127.0.0.1', '::1'], which means the module can only be accessed by localhost.
public $allowedIPs

$enabled публичное свойство

enable/disable component in application.
public $enabled

$hiddenConfigOptions публичное свойство

list of unsecure component options (like login, passwords, secret keys) that will be hidden in application configuration page.
public $hiddenConfigOptions

$highlightCode публичное свойство

highlight code in debug logs.
public $highlightCode

$historySize публичное свойство

the maximum number of debug data files to keep. If there are more files generated, the oldest ones will be removed.
public $historySize

$internalUrls публичное свойство

use nice route rules in debug module.
public $internalUrls

$logPath публичное свойство

the directory storing the debugger data files. This can be specified using a path alias.
public $logPath

$moduleId публичное свойство

module ID for viewing stored debug logs.
public $moduleId

$panels публичное свойство

list debug panels. The array keys are the panel IDs, and values are the corresponding panel class names or configuration arrays. This will be merged with ::corePanels(). You may reconfigure a core panel via this property by using the same panel ID. You may also disable a core panel by setting it to be false in this property.
public $panels

$showConfig публичное свойство

show brief application configuration.
public $showConfig