File/ddt/ddt.php

Description

Debug and Error Message functions.

These functions implement a procedural version of the formVista DDT debug message system.

Functions
dumpmsg (line 68)

dumps message to stdout or log file depending upon global.

checks $fvDEBUG["logfile"] global for name of file to dump messages to. Opens the file once.

void dumpmsg (mixed $msgline)
errorEcho (line 211)
void errorEcho (mixed $title, mixed $field)
_ddt (line 112)

displays a formatted debugging message.

If ddtOn() was called, outputs a formatted debugging message.

void _ddt (string $file, string $line, string $msg)
  • string $file: filename, usually __FILE__
  • string $line: line number in file, usually __LINE__
  • string $msg: debugging message to display
_ddtArray (line 150)

displays a formatted dump of an associative array.

If ddtOn() was called, outputs a formatted debugging message showing contents of array.

void _ddtArray (string $file, string $line, string $msg, array $array_var)
  • string $file: filename, usually __FILE__
  • string $line: line number in file, usually __LINE__
  • string $msg: debugging message to display
  • array $array_var: array to dump.
_ddtOn (line 237)

turns on procedural debugging.

Causes _ddt() calls to display debugging messages.

void _ddtOn ()
_ddtSetCmdLine (line 287)

set debugging output style to command line.

tells ddt to format debugging messages for a command line program.

void _ddtSetCmdLine ()
_error (line 178)

Central Error Function.

Displays a formatted error message to the user. If the global _DDT_ERROR_LOG is set the error message is dumped to that file instead of being displayed to the user.

void _error (mixed $file, mixed $line, mixed $msg)
_setDebugLog (line 271)

set output file for debugging messages.

sets the destination file for debugging messages.

void _setDebugLog (mixed $debugLog, string $file)
  • string $file: full path to debuglog.
_setErrorLog (line 254)

set error message destination.

sets the destination for error messages.

void _setErrorLog (mixed $errorLog, string $file)
  • string $file: full path to errorlog.

Documentation generated on Sat, 31 Dec 2005 14:56:52 -0500 by phpDocumentor 1.3.0RC3