/data/areaedit/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 69)

Dumps message to stdout or log file depending upon global.

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

void dumpmsg (string $msgline)
  • string $msgline: The message to dump
errorEcho (line 198)

Echo out an error.

void errorEcho (string $title, string $field)
  • string $title: Error title
  • string $field: The field associated with the error (blank: do not show with HTML)
_ddt (line 106)

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 137)

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 215)

Turns on procedural debugging.

Causes _ddt() calls to display debugging messages.

void _ddtOn ()
_ddtSetCmdLine (line 253)

Set debugging output style to command line.

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

void _ddtSetCmdLine ()
_error (line 165)

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 (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
_setDebugLog (line 241)

Set output file for debugging messages.

Sets the destination file for debugging messages.

void _setDebugLog (string $debug_log)
  • string $debug_log: full path to debuglog.
_setErrorLog (line 228)

Set error message destination.

Sets the destination for error messages.

void _setErrorLog (string $error_log)
  • string $error_log: full path to errorlog.

Documentation generated on Thu, 07 Aug 2008 14:07:43 +0100 by phpDocumentor 1.4.1