Class Trees

Class Debug

Debug
Located in: Program_Root/Debug.php
Debug class
Class for outputting debug info.

Example:
  // enable debug to be outputted
  Debug::on();
  // set debug level to output debug message with filename and line name
  Debug::level(DEBUG_OUTPUT_FILENAME | DEBUG_OUTPUT_LINE);
  // print debug info (optional filename (__FILE__) and line number (__LINE__) can be passed)
  Debug::debug('debug text here', __FILE__, __LINE__);
  // suppress output of further debug() calls
  Debug::off();
  // no output will be produced
  Debug::debug('testing');

Classes extended from Debug:


Method Summary

 bool is_on ( )
          Is on - returns true if debuggin is on, false otherwise
 void debug ( $text, [$file = ''], [$line = ''] )
          Debug - output debug info
 int level ( [$new_level = null] )
          Level - set or get debug level
 void off ( )
          Off - turn debugging off
 void on ( )
          On - turn debugging on

Class Variable Summary


Inherited Class Variable Summary


Inherited Method Summary


Variable Detail


Method Detail

is_on

bool  is_on ( )

Is on - returns true if debuggin is on, false otherwise

Function Parameters:
Function Info:
Static -

debug

void  debug ( $text, [$file = ''], [$line = ''] )

Debug - output debug info

Function Parameters:
Function Info:

level

int  level ( [$new_level = null] )

Level - set or get debug level

Function Parameters:
- int $new_level:
Function Info:

off

void  off ( )

Off - turn debugging off

Function Parameters:
Function Info:
Static -

on

void  on ( )

On - turn debugging on

Function Parameters:
Function Info:
Static -