Overview

Packages

  • Support

Classes

  • Horde_Support_Array
  • Horde_Support_Backtrace
  • Horde_Support_CombineStream
  • Horde_Support_ConsistentHash
  • Horde_Support_Guid
  • Horde_Support_Inflector
  • Horde_Support_Memory
  • Horde_Support_Numerizer
  • Horde_Support_Numerizer_Locale_Base
  • Horde_Support_Numerizer_Locale_De
  • Horde_Support_Numerizer_Locale_Pt
  • Horde_Support_Randomid
  • Horde_Support_Stack
  • Horde_Support_StringStream
  • Horde_Support_Stub
  • Horde_Support_Timer
  • Horde_Support_Uuid
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Support_Backtrace

Wrapper around backtraces providing utility methods.

Copyright 1999-2012 Horde LLC (http://www.horde.org/)

Package: Support
Category: Horde
License: http://www.horde.org/licenses/bsd
Located at Horde/Support/Backtrace.php
Methods summary
public
# __construct( mixed $backtrace = null )
public
# createFromDebugBacktrace( array $backtrace, integer $nestingLevel = 0 )

Wraps the result of debug_backtrace().

Wraps the result of debug_backtrace().

By specifying a non-zero $nestingLevel, levels of the backtrace can be ignored. For instance, when Horde_Support_Backtrace creates a backtrace for you, it ignores the Horde_Backtrace constructor in the wrapped trace.

Parameters

$backtrace
The debug_backtrace() result.
$nestingLevel
<p>The number of levels of the backtrace to ignore.</p>
public
# createFromException( Exception $e )

Wraps an Exception object's backtrace.

Wraps an Exception object's backtrace.

Parameters

$e
The exception to wrap.
public integer
# getNestingLevel( )

Returns the nesting level (number of calls deep) of the current context.

Returns the nesting level (number of calls deep) of the current context.

Returns

integer
Nesting level.
public array
# getContext( integer $nestingLevel )

Returns the context at a specific nesting level.

Returns the context at a specific nesting level.

Parameters

$nestingLevel
0 == current level, 1 == caller, and so on

Returns

array
The requested context.
public array
# getCurrentContext( )

Returns details about the routine where the exception occurred.

Returns details about the routine where the exception occurred.

Returns

array
$caller
public array
# getCallingContext( )

Returns details about the caller of the routine where the exception occurred.

Returns details about the caller of the routine where the exception occurred.

Returns

array
$caller
public string
# __toString( )

Returns a simple, human-readable list of the complete backtrace.

Returns a simple, human-readable list of the complete backtrace.

Returns

string
The backtrace map.
API documentation generated by ApiGen