UNB Components Code Reference

UnbDebug::GetCallTrace method

Formats a call trace.

public static function UnbDebug::GetCallTrace ($fileName = null, $line = null);

Parameters

fileName  –  optional, default: null

(int) Number of levels to skip in the call trace, 0 if not specified
(string) File name as reported in the error event
(Exception) Read all data from the Exception object

line  –  optional, default: null

(int) Line number as reported in the error event (ignored if the first parameter is no string)

Return value

(string) Formatted call trace with class, function and file names and line numbers.

Remarks

This method is used for automatic error and exception handlers. It may also be used for other debugging purposes, but in those cases it should be called with an integer as only parameter or no parameters at all.

Member of class: UnbDebug

Implementation file: unb.class.php, line 158

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.