Static Public Member Functions | Static Private Member Functions | Static Private Attributes

debug Class Reference

Static Public Member Functions

static callFrom ($nb=1, $sep='-')
static trace ($obj, $printExit=false)
static errorHandler ($code, $message, $file, $line)
static debugger (array $elts=null)
static timer ($name=null)

Static Private Member Functions

static initCfg ()

Static Private Attributes

static $cfg
static $timer = array()

Detailed Description

Debugging class

Definition at line 10 of file debug.class.php.


Member Function Documentation

static callFrom ( nb = 1,
sep = '-' 
) [static]

retrieve the function where the call come from

Parameters:
int $nb Recursion number
null|string $sep Seperator for the return between the className and the function name If null, only the className is returned
Returns:
string CLASS.$sep.FUNCTION

Definition at line 38 of file debug.class.php.

static debugger ( array $  elts = null  )  [static]

Get the HTML for the debugger, and add the CSS and JS to the response

Parameters:
array $elts
Returns:
string

Definition at line 88 of file debug.class.php.

static errorHandler ( code,
message,
file,
line 
) [static]

Definition at line 64 of file debug.class.php.

static initCfg (  )  [static, private]

Definition at line 26 of file debug.class.php.

static timer ( name = null  )  [static]

Starts or ends a timer

Parameters:
string $name Timer name
Returns:
unknown

Definition at line 144 of file debug.class.php.

static trace ( obj,
printExit = false 
) [static]

Return a string for debug an element/object to debug

Parameters:
mixed $obj: The object to show
bool $printExit: true or 1 to print the result, 2 for print and exit
Returns:
string

Definition at line 54 of file debug.class.php.


Field Documentation

$cfg [static, private]

Definition at line 17 of file debug.class.php.

$timer = array() [static, private]

Definition at line 24 of file debug.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Enumerations
Generated on Tue May 8 2012 16:02:25 for nyroFwk by doxygen 1.7.1