PHP 클래스 Snowair\Debugbar\PhalconDebugbar

Rest is added in Service Provider
상속: extends DebugBar\DebugBar
파일 보기 프로젝트 열기: snowair/phalcon-debugbar 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$isDebugbarRequest

보호된 프로퍼티들

프로퍼티 타입 설명
$booted
$config
$di Phalcon\DI

공개 메소드들

메소드 설명
__call ( string $method, array $args ) : mixed | void Magic calls for adding messages
__construct ( $di )
addException ( Exception $e ) Adds an exception to be profiled in the debug bar
addMeasure ( string $label, float $start, float $end ) Adds a measure
addMeasurePoint ( $label, $start = null )
addMessage ( mixed $message, string $label = 'info' ) Adds a message to the MessagesCollector
attachCache ( $cacheService )
attachDb ( Phalcon\Db\Adapter $db )
attachMailer ( $mailer )
attachServices ( )
attachView ( $view )
boot ( ) 启动debugbar: 设置collector
collect ( ) : array Collects the data from the collectors
debugbarRequestCollector ( )
disable ( )
enable ( )
getJavascriptRenderer ( string $baseUrl = null, null $basePath = null ) : Snowair\Debugbar\JsRender Returns a JavascriptRenderer for this instance
injectDebugbar ( Phalcon\Http\Response $response ) Injects the web debug toolbar into the given Response.
isEnabled ( ) : boolean 检查是否启用了debugbar
isRedirection ( Phalcon\Http\Response $response ) : boolean
measure ( string $label, Closure $closure ) Utility function to measure the execution of a Closure
modifyResponse ( Phalcon\Http\Response $response ) : mixed
shouldCollect ( $name, $default = false )
sortCollectors ( )
startMeasure ( string $name, string $label = null ) Starts a measure
stopMeasure ( string $name ) Stops a measure

보호된 메소드들

메소드 설명
createProxy ( $backend, $collector )
isJsonRequest ( ) : boolean
selectStorage ( DebugBar\DebugBar $debugbar )

메소드 상세

__call() 공개 메소드

Magic calls for adding messages
public __call ( string $method, array $args ) : mixed | void
$method string
$args array
리턴 mixed | void

__construct() 공개 메소드

public __construct ( $di )

addException() 공개 메소드

Adds an exception to be profiled in the debug bar
public addException ( Exception $e )
$e Exception

addMeasure() 공개 메소드

Adds a measure
public addMeasure ( string $label, float $start, float $end )
$label string
$start float
$end float

addMeasurePoint() 공개 메소드

public addMeasurePoint ( $label, $start = null )

addMessage() 공개 메소드

A message can be anything from an object to a string
public addMessage ( mixed $message, string $label = 'info' )
$message mixed
$label string

attachCache() 공개 메소드

public attachCache ( $cacheService )

attachDb() 공개 메소드

public attachDb ( Phalcon\Db\Adapter $db )
$db Phalcon\Db\Adapter

attachMailer() 공개 메소드

public attachMailer ( $mailer )

attachServices() 공개 메소드

public attachServices ( )

attachView() 공개 메소드

public attachView ( $view )
$view

boot() 공개 메소드

启动debugbar: 设置collector
public boot ( )

collect() 공개 메소드

Collects the data from the collectors
public collect ( ) : array
리턴 array

createProxy() 보호된 메소드

protected createProxy ( $backend, $collector )

debugbarRequestCollector() 공개 메소드

disable() 공개 메소드

public disable ( )

enable() 공개 메소드

public enable ( )

getJavascriptRenderer() 공개 메소드

Returns a JavascriptRenderer for this instance
public getJavascriptRenderer ( string $baseUrl = null, null $basePath = null ) : Snowair\Debugbar\JsRender
$baseUrl string
$basePath null
리턴 Snowair\Debugbar\JsRender

injectDebugbar() 공개 메소드

Based on https://github.com/symfony/WebProfilerBundle/blob/master/EventListener/WebDebugToolbarListener.php
public injectDebugbar ( Phalcon\Http\Response $response )
$response Phalcon\Http\Response

isEnabled() 공개 메소드

检查是否启用了debugbar
public isEnabled ( ) : boolean
리턴 boolean

isJsonRequest() 보호된 메소드

protected isJsonRequest ( ) : boolean
리턴 boolean

isRedirection() 공개 메소드

public isRedirection ( Phalcon\Http\Response $response ) : boolean
$response Phalcon\Http\Response
리턴 boolean

measure() 공개 메소드

Utility function to measure the execution of a Closure
public measure ( string $label, Closure $closure )
$label string
$closure Closure

modifyResponse() 공개 메소드

public modifyResponse ( Phalcon\Http\Response $response ) : mixed
$response Phalcon\Http\Response
리턴 mixed

selectStorage() 보호된 메소드

protected selectStorage ( DebugBar\DebugBar $debugbar )
$debugbar DebugBar\DebugBar

shouldCollect() 공개 메소드

public shouldCollect ( $name, $default = false )

sortCollectors() 공개 메소드

public sortCollectors ( )

startMeasure() 공개 메소드

Starts a measure
public startMeasure ( string $name, string $label = null )
$name string Internal name, used to stop the measure
$label string Public name

stopMeasure() 공개 메소드

Stops a measure
public stopMeasure ( string $name )
$name string

프로퍼티 상세

$booted 보호되어 있는 프로퍼티

protected $booted

$config 보호되어 있는 프로퍼티

protected $config

$di 보호되어 있는 프로퍼티

protected DI,Phalcon $di
리턴 Phalcon\DI

$isDebugbarRequest 공개적으로 프로퍼티

public $isDebugbarRequest