Class Nexista_Debug

Description

This class Nexista_provides some debugging functions

Located in /kernel/debug.php (line 20)


	
			
Method Summary
 static void args (string &$args)
 static void dump (array $array, [name $name = ''])
 static string getMicrotime (string $start)
 static string message (string $message)
 static string profile ([integer $startTime = false])
 static string register (string $type, string $function)
Methods
static args (line 53)

Prints out the arguments from a function

  • access: public
void args (string &$args)
  • string &$args: argument array from a function
static dump (line 30)

Pretty prints an array

  • access: public
void dump (array $array, [name $name = ''])
  • array $array: The array to dump to screen
  • name $name: Optional pretty name to print
static getMicrotime (line 161)

Returns current time in seconds

  • return: elapsed time
  • access: public
string getMicrotime (string $start)
  • string $start: microtime
static message (line 145)

Logs a generic debug message

This function accepts a message that can be used to debug or trace script flow. Depending on the setting of

  • return: elapsed time
  • access: public
string message (string $message)
  • string $message: message to log/print
static profile (line 175)

Calculates elapsed time

  • return: elapsed time
  • access: public
string profile ([integer $startTime = false])
  • integer $startTime: start time to use. If none supplied, script start time is used
static register (line 91)

Registers current active module

This function is used to register the name of the current active module/function in order to help trace debugging and profiling. $type determines the type of message: 'in' - sets function entry 'out' - sets function exit - prints elapsed time

  • return: elapsed time
  • access: public
string register (string $type, string $function)
  • string $type: type of registration
  • string $function: module name

Documentation generated on Tue, 11 Mar 2008 23:22:57 -0400 for Nexista 0.2.0