\duncan3dc\HelpersDebug

Summary

Methods
Properties
Constants
on()
off()
output()
text()
html()
call()
No public properties found
No constants found
getTime()
indent()
$on
$time
$mode
$indent
N/A
No private methods found
No private properties found
N/A

Properties

$on

$on : boolean

Type

boolean — Whether debugging is currently on or not

$time

$time : integer

Type

integer — The time we started debugging

$mode

$mode : string

Type

string — The mode of the output (html/text)

$indent

$indent : integer

Type

integer — The current indentation level of output

Methods

on()

on(string $mode) : void

Turn debugging on (so any content is output)

Parameters

string $mode

The mode to output in

off()

off() : void

Turn debugging of (so any content is not output)

output()

output(string $message, mixed $data) : void

Output a message, in the current mode, if we are currently debugging

Parameters

string $message

The message to output

mixed $data

Additional data to output

text()

text(string $message, mixed $data) : void

Output a message, in text mode, if we are currently debugging

Parameters

string $message

The message to output

mixed $data

Additional data to output

html()

html(string $message, mixed $data) : void

Output a message, in html mode, if we are currently debugging

Parameters

string $message

The message to output

mixed $data

Additional data to output

call()

call(string $message, callable $func) : void

Output a start time, run a callable, then out the endtime

Parameters

string $message

The message to output

callable $func

The function to execute

getTime()

getTime() : void

Get the time elapsed since the we started debugging

indent()

indent() : void

Output some indentation based on the current level