PHP Class PhalconDebug, phalcon-debugbar

Mostrar archivo Open project: snowair/phalcon-debugbar Class Usage Examples

Public Properties

Property Type Description
$debugbar Snowair\Debugbar\PhalconDebugbar

Public Methods

Method Description
addException ( Exception $e ) Add a Exception Instance to Debugbar
addMeasure ( $label, float $start, float $stop ) Measure time between $stop and $start
addMeasurePoint ( $label ) Measure time between nowtime and previous time measure
addMessage ( $message, string $label = 'INFO' ) Add a custom message to debugbar
addMessageIfEmpty ( $message, $condition, string $label = 'INFO' ) Add a custom message to debugbar only when empty($condition)===true
addMessageIfFalse ( $message, $condition, string $label = 'INFO' ) Add a custom message to debugbar only when $condition===false
addMessageIfNotEmpty ( $message, $condition, string $label = 'INFO' ) Add a custom message to debugbar only when empty($condition)===true
addMessageIfNull ( $message, $condition, string $label = 'INFO' ) Add a custom message to debugbar only when $condition===null
addMessageIfTrue ( $message, $condition, string $label = 'INFO' ) Add a custom message to debugbar only when $condition===true
alert ( ) Add a alert message to debugbar
critical ( ) Add a critical message to debugbar
debug ( ) Add a debug message to debugbar
emergency ( ) Add a emergency message to debugbar
error ( ) Add a notice message to debugbar
info ( ) Add a info message to debugbar
log ( ) Add a log message to debugbar
notice ( ) Add a notice message to debugbar
startMeasure ( string $name, null $label = null ) Start a new timeline measure with a given name
stopMeasure ( $name ) Stop a measure
warning ( ) Add a warning message to debugbar

Protected Methods

Method Description
debugbar ( ) : PhalconDebugbar GET the debugbar service Instance

Method Details

addException() public static method

Add a Exception Instance to Debugbar
public static addException ( Exception $e )
$e Exception

addMeasure() public static method

Measure time between $stop and $start
public static addMeasure ( $label, float $start, float $stop )
$label
$start float microseconds timestamp
$stop float microseconds timestamp

addMeasurePoint() public static method

Measure time between nowtime and previous time measure
public static addMeasurePoint ( $label )
$label

addMessage() public static method

Add a custom message to debugbar
public static addMessage ( $message, string $label = 'INFO' )
$message
$label string

addMessageIfEmpty() public static method

Add a custom message to debugbar only when empty($condition)===true
public static addMessageIfEmpty ( $message, $condition, string $label = 'INFO' )
$message
$condition
$label string

addMessageIfFalse() public static method

Add a custom message to debugbar only when $condition===false
public static addMessageIfFalse ( $message, $condition, string $label = 'INFO' )
$message
$condition
$label string

addMessageIfNotEmpty() public static method

Add a custom message to debugbar only when empty($condition)===true
public static addMessageIfNotEmpty ( $message, $condition, string $label = 'INFO' )
$message
$condition
$label string

addMessageIfNull() public static method

Add a custom message to debugbar only when $condition===null
public static addMessageIfNull ( $message, $condition, string $label = 'INFO' )
$message
$condition
$label string

addMessageIfTrue() public static method

Add a custom message to debugbar only when $condition===true
public static addMessageIfTrue ( $message, $condition, string $label = 'INFO' )
$message
$condition
$label string

alert() public static method

Add a alert message to debugbar
public static alert ( )

critical() public static method

Add a critical message to debugbar
public static critical ( )

debug() public static method

Add a debug message to debugbar
public static debug ( )

debugbar() protected static method

GET the debugbar service Instance
protected static debugbar ( ) : PhalconDebugbar
return Snowair\Debugbar\PhalconDebugbar

emergency() public static method

Add a emergency message to debugbar
public static emergency ( )

error() public static method

Add a notice message to debugbar
public static error ( )

info() public static method

Add a info message to debugbar
public static info ( )

log() public static method

Add a log message to debugbar
public static log ( )

notice() public static method

Add a notice message to debugbar
public static notice ( )

startMeasure() public static method

Start a new timeline measure with a given name
public static startMeasure ( string $name, null $label = null )
$name string internal name, use to stop measure
$label null

stopMeasure() public static method

Stop a measure
public static stopMeasure ( $name )
$name

warning() public static method

Add a warning message to debugbar
public static warning ( )

Property Details

$debugbar public_oe static_oe property

public static PhalconDebugbar,Snowair\Debugbar $debugbar
return Snowair\Debugbar\PhalconDebugbar