Documentation

Horde_View_Helper_Debug extends Horde_View_Helper_Base
in package

Dumps a variable for inspection.

Portions borrowed from Paul M. Jones' Solar_Debug

Tags
author

Mike Naberezny mike@maintainable.com

author

Derek DeVries derek@maintainable.com

author

Chuck Hagenbuch chuck@horde.org

license

http://www.horde.org/licenses/bsd

category

Horde

subpackage

Helper

Table of Contents

$_view  : Horde_View
The parent view invoking the helper.
__call()  : mixed
Call chaining so members of the view can be called (including other helpers).
__construct()  : mixed
Creates a helper for $view.
__get()  : mixed
Proxy on undefined property access (get).
__set()  : mixed
Proxy on undefined property access (set).
debug()  : string
Dumps a variable for inspection.
dump()  : string
Pretty exception dumper.
_clean()  : mixed
_fetch()  : string
Returns formatted output from var_dump().
_parms()  : mixed
_src2lines()  : mixed
_sub()  : mixed

Properties

Methods

__call()

Call chaining so members of the view can be called (including other helpers).

public __call(string $method, array<string|int, mixed> $args) : mixed
Parameters
$method : string

The method.

$args : array<string|int, mixed>

The parameters for the method.

Return values
mixed

The result of the method.

__construct()

Creates a helper for $view.

public __construct(Horde_View $view) : mixed
Parameters
$view : Horde_View

The view to help.

Return values
mixed

__get()

Proxy on undefined property access (get).

public __get(mixed $name) : mixed
Parameters
$name : mixed
Return values
mixed

__set()

Proxy on undefined property access (set).

public __set(mixed $name, mixed $value) : mixed
Parameters
$name : mixed
$value : mixed
Return values
mixed

debug()

Dumps a variable for inspection.

public debug(mixed $var) : string
Parameters
$var : mixed

A variable.

Return values
string

Debug output of the variable.

dump()

Pretty exception dumper.

public dump(Exception $e) : string

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

Parameters
$e : Exception

An exception to dump.

Return values
string

Debug output of the exception.

_clean()

protected _clean(mixed $line) : mixed
Parameters
$line : mixed
Return values
mixed

_fetch()

Returns formatted output from var_dump().

protected _fetch(mixed $var) : string

Buffers the var_dump() output for a variable and applies some simple formatting for readability.

Parameters
$var : mixed

Variable to dump.

Return values
string

Formatted results of var_dump().

_parms()

protected _parms(mixed $f) : mixed
Parameters
$f : mixed
Return values
mixed

_src2lines()

protected _src2lines(mixed $file) : mixed
Parameters
$file : mixed
Return values
mixed

_sub()

protected _sub(mixed $f) : mixed
Parameters
$f : mixed
Return values
mixed

Search results