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
Afficher le fichier Open project: horde/horde

Méthodes publiques

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

Méthodes protégées

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

Method Details

_clean() protected méthode

protected _clean ( $line )

_fetch() protected méthode

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.
Résultat string Formatted results of var_dump().

_parms() protected méthode

protected _parms ( $f )

_src2lines() protected méthode

protected _src2lines ( $file )

_sub() protected méthode

protected _sub ( $f )

debug() public méthode

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

dump() public méthode

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.
Résultat string Debug output of the exception.