327. Class

327.1. Zend\Debug\Debug

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

327.1.1. Methods

327.1.1.1. getSapi

getSapi()

Get the current value of the debug output environment. This defaults to the value of PHP_SAPI.

Return type:string;

327.1.1.2. setSapi

setSapi()

Set the debug output environment. Setting a value of null causes Zend_Debug to use PHP_SAPI.

Parameters:string
Return type:void;

327.1.1.3. setEscaper

setEscaper()

Set Escaper instance

Parameters:Escaper

327.1.1.4. getEscaper

getEscaper()

Get Escaper instance

Lazy loads an instance if none provided.

Return type:Escaper

327.1.1.5. dump

dump()

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.

Parameters:
  • mixed – The variable to dump.
  • string – OPTIONAL Label to prepend to output.
  • bool – OPTIONAL Echo output if true.
Return type:

string

Project Versions

Table Of Contents

Previous topic

326. Class

Next topic

328. Class

This Page