PHP 클래스 Yii2Debug, yii2-debug

부터: 1.1.13
저자: Roman Zhuravlev ([email protected])
상속: extends CApplicationComponent
파일 보기 프로젝트 열기: zhuravljov/yii2-debug 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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