\Horde_View_Helper_Debug

Dumps a variable for inspection.

Portions borrowed from Paul M. Jones' Solar_Debug

Summary

Methods
Properties
Constants
__construct()
__get()
__set()
__call()
debug()
dump()
No public properties found
No constants found
_fetch()
_sub()
_clean()
_parms()
_src2lines()
$_view
N/A
No private methods found
No private properties found
N/A

Properties

$_view

$_view : \Horde_View

The parent view invoking the helper.

Type

\Horde_View

Methods

__construct()

__construct(\Horde_View  $view) 

Creates a helper for $view.

Parameters

\Horde_View $view

The view to help.

__get()

__get(  $name) 

Proxy on undefined property access (get).

Parameters

$name

__set()

__set(  $name,   $value) 

Proxy on undefined property access (set).

Parameters

$name
$value

__call()

__call(string  $method, array  $args) : mixed

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

Parameters

string $method

The method.

array $args

The parameters for the method.

Returns

mixed —

The result of the method.

debug()

debug(mixed  $var) : string

Dumps a variable for inspection.

Parameters

mixed $var

A variable.

Returns

string —

Debug output of the variable.

_fetch()

_fetch(mixed  $var) : string

Returns formatted output from var_dump().

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

Parameters

mixed $var

Variable to dump.

Returns

string —

Formatted results of var_dump().

_sub()

_sub(  $f) 

Parameters

$f

_clean()

_clean(  $line) 

Parameters

$line

_parms()

_parms(  $f) 

Parameters

$f

_src2lines()

_src2lines(  $file) 

Parameters

$file