Concrete class for generating debug dumps related to the output source.

package Default

 Methods

Debug helper function. This is a wrapper for var_dump() that adds the <pre /> tags, cleans up newlines and indents, and runs htmlentities() before output.

dump(mixed $var, string $label = null, boolean $echo = true) : string
Static

Parameters

$var

mixed

The variable to dump.

$label

string

OPTIONAL Label to prepend to output.

$echo

boolean

OPTIONAL Echo output if true.

Returns

string

Get Escaper instance

getEscaper() : \Zend\Escaper\Escaper
Static

Lazy loads an instance if none provided.

Returns

\Zend\Escaper\Escaper

Get the current value of the debug output environment.

getSapi() : \Zend\Debug\string;
Static

This defaults to the value of PHP_SAPI.

Returns

\Zend\Debug\string;

Set Escaper instance

setEscaper(\Zend\Escaper\Escaper $escaper) 
Static

Parameters

$escaper

\Zend\Escaper\Escaper

Set the debug output environment.

setSapi(string $sapi) : \Zend\Debug\void;
Static

Setting a value of null causes Zend\Debug\Debug to use PHP_SAPI.

Parameters

$sapi

string

Returns

\Zend\Debug\void;

 Properties

 

$escaper

$escaper : \Zend\Escaper\Escaper

Default

null
Static
 

$sapi

$sapi : string

Default

null
Static