\cge_debug

A simple class with some debug functions.

This class supports output to different files.

Summary

Methods
Properties
Constants
set_html()
is_html()
set_instant()
is_instant()
set_filename()
output()
add()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

set_html()

set_html(boolean  $var = true) 

Set flag indicating that output should be in html.

Parameters

boolean $var

is_html()

is_html() : boolean

Get flag indicating that output should be in html or not.

Returns

boolean

set_instant()

set_instant(boolean  $var = true) 

Set flag indicating that output should be output instantly, or cached

Parameters

boolean $var

is_instant()

is_instant() : boolean

Get flag indicating whether output should be output instantly, or cached

Returns

boolean

set_filename()

set_filename(string  $str) 

Set filename for debug output.

The default value for this variable is TMP_CACHE_LOCATION/cge_debug.log

Parameters

string $str

The absolute path to the filename.

output()

output(string  $filename = '') 

Output accrued debug information to a specified file.

If the filename parameter is not specified, the currently set filename will be used, or a hardcoded filename.

Parameters

string $filename

add()

add(mixed  $var, string  $title = '') 

Add information to the debug log.

Parameters

mixed $var

The variable to add to the debug log. This method attempts to parse objects and arrays.

string $title

The title for the debug message.