nyroFwk  0.2
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

◆ callFrom()

static callFrom (   $nb = 1,
  $sep = '-' 
)
static

retrieve the function where the call come from

Parameters
int$nbRecursion number
null | string$sepSeperator 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.

◆ debugger()

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.

◆ errorHandler()

static errorHandler (   $code,
  $message,
  $file,
  $line 
)
static

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

◆ initCfg()

static initCfg ( )
staticprivate

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

◆ timer()

static timer (   $name = null)
static

Starts or ends a timer

Parameters
string$nameTimer name
Returns
unknown

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

◆ trace()

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

$cfg
staticprivate

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

◆ $timer

$timer = array()
staticprivate

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


The documentation for this class was generated from the following file:
Generated on Sun Oct 15 2017 22:25:20 for nyroFwk by doxygen 1.8.13