public static function debugTrail() {
		$trail = debug_backtrace();
		$trail = array_reverse($trail);
		array_pop($trail);

		$path = array();
		foreach ($trail as $dat) {
			$pathFragment = $dat['class'] . $dat['type'] . $dat['function'];
				// add the path of the included file
			if (in_array($dat['function'], array('require', 'include', 'require_once', 'include_once'))) {
				$pathFragment .= '(' . substr($dat['args'][0], strlen(PATH_site)) . '),' . substr($dat['file'], strlen(PATH_site));
			}
			$path[] = $pathFragment . '#' . $dat['line'];
		}

		return implode(' // ', $path);
	}
public static function debugTrail() {
		$trail = debug_backtrace();
		$trail = array_reverse($trail);
		array_pop($trail);

		$path = array();
		foreach ($trail as $dat) {
			$pathFragment = $dat['class'] . $dat['type'] . $dat['function'];
				// add the path of the included file
			if (in_array($dat['function'], array('require', 'include', 'require_once', 'include_once'))) {
				$pathFragment .= '(' . substr($dat['args'][0], strlen(PATH_site)) . '),' . substr($dat['file'], strlen(PATH_site));
			}
			$path[] = $pathFragment . '#' . $dat['line'];
		}

		return implode(' // ', $path);
	}
public static function debugTrail ( ) { $ trail = debug_backtrace ( ) ; $ trail = array_reverse ( $ trail ) ; array_pop ( $ trail ) ; $ path = array ( ) ; foreach ( $ trail as $ dat ) { $ pathFragment = $ dat [ 'class' ] . $ dat [ 'type' ] . $ dat [ 'function' ] ; // add the path of the included file if ( in_array ( $ dat [ 'function' ] , array ( 'require' , 'include' , 'require_once' , 'include_once' ) ) ) { $ pathFragment .= '(' . substr ( $ dat [ 'args' ] [ 0 ] , strlen ( PATH_site ) ) . '),' . substr ( $ dat [ 'file' ] , strlen ( PATH_site ) ) ; } $ path [ ] = $ pathFragment . '#' . $ dat [ 'line' ] ; } return implode ( ' // ' , $ path ) ; }
Displays the "path" of the function call stack in a string, using debug_backtrace

@return	string
Displays the path of the function call stack in a string using debug_backtrace