Zend Framework  3.0
Static Public Member Functions | Static Protected Attributes | List of all members
Debug Class Reference

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

Static Public Member Functions

static getSapi ()
 Get the current value of the debug output environment.
 
static setSapi ($sapi)
 Set the debug output environment.
 
static setEscaper (Escaper $escaper)
 Set Escaper instance.
 
static getEscaper ()
 Get Escaper instance.
 
static dump ($var, $label=null, $echo=true)
 Debug helper function.
 

Static Protected Attributes

static $escaper = null
 
static $sapi = null
 

Detailed Description

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

Member Function Documentation

static dump (   $var,
  $label = null,
  $echo = true 
)
static

Debug helper function.

This is a wrapper for var_dump() that adds the

 tags, cleans up newlines and indents, and runs
htmlentities() before output.
Parameters
mixed$varThe variable to dump.
string$labelOPTIONAL Label to prepend to output.
bool$echoOPTIONAL Echo output if true.
Returns
string
static getEscaper ( )
static

Get Escaper instance.

Lazy loads an instance if none provided.

Returns
Escaper
static getSapi ( )
static

Get the current value of the debug output environment.

This defaults to the value of PHP_SAPI.

Returns
string;
static setEscaper ( Escaper  $escaper)
static

Set Escaper instance.

Parameters
Escaper$escaper
static setSapi (   $sapi)
static

Set the debug output environment.

Setting a value of null causes Zend to use PHP_SAPI.

Parameters
string$sapi
Returns
void;

Member Data Documentation

$escaper = null
staticprotected
$sapi = null
staticprotected