PHP Class Horde_View_Helper_Debug, horde

Portions borrowed from Paul M. Jones' Solar_Debug
Author: Mike Naberezny ([email protected])
Author: Derek DeVries ([email protected])
Author: Chuck Hagenbuch ([email protected])
Inheritance: extends Horde_View_Helper_Base
Show file Open project: horde/horde

Public Methods

Method Description
debug ( mixed $var ) : string Dumps a variable for inspection.
dump ( Exception $e ) : string Pretty exception dumper.

Protected Methods

Method Description
_clean ( $line )
_fetch ( mixed $var ) : string Returns formatted output from var_dump().
_parms ( $f )
_src2lines ( $file )
_sub ( $f )

Method Details

_clean() protected method

protected _clean ( $line )

_fetch() protected method

Buffers the var_dump() output for a variable and applies some simple formatting for readability.
protected _fetch ( mixed $var ) : string
$var mixed Variable to dump.
return string Formatted results of var_dump().

_parms() protected method

protected _parms ( $f )

_src2lines() protected method

protected _src2lines ( $file )

_sub() protected method

protected _sub ( $f )

debug() public method

Dumps a variable for inspection.
public debug ( mixed $var ) : string
$var mixed A variable.
return string Debug output of the variable.

dump() public method

Inspired by: http://www.sitepoint.com/blogs/2006/04/04/pretty-blue-screen/ and http://www.sitepoint.com/blogs/2006/08/12/pimpin-harrys-pretty-bluescreen/. Also see for future ideas: http://mikenaberezny.com/archives/55
public dump ( Exception $e ) : string
$e Exception An exception to dump.
return string Debug output of the exception.