Documentation

Debug
in package

Static class containing most used debug methods.

Tags
link
www.doctrine-project.org
since
2.0
author

Guilherme Blanco guilhermeblanco@hotmail.com

author

Jonathan Wage jonwage@gmail.com

author

Roman Borschel roman@code-factory.org

author

Giorgio Sironi piccoloprincipeazzurro@gmail.com

Table of Contents

dump()  : string
Prints a dump of the public, protected and private properties of $var.
export()  : mixed
toString()  : string
Returns a string representation of an object.
__construct()  : mixed
Private constructor (prevents instantiation).
fillReturnWithClassAttributes()  : mixed
Fill the $return variable with class attributes

Methods

dump()

Prints a dump of the public, protected and private properties of $var.

public static dump(mixed $var[, int $maxDepth = 2 ][, bool $stripTags = true ][, bool $echo = true ]) : string
Parameters
$var : mixed

The variable to dump.

$maxDepth : int = 2

The maximum nesting level for object properties.

$stripTags : bool = true

Whether output should strip HTML tags.

$echo : bool = true

Send the dumped value to the output buffer

Tags
link
http://xdebug.org/
Return values
string

export()

public static export(mixed $var, int $maxDepth) : mixed
Parameters
$var : mixed
$maxDepth : int
Return values
mixed

toString()

Returns a string representation of an object.

public static toString(object $obj) : string
Parameters
$obj : object
Return values
string

__construct()

Private constructor (prevents instantiation).

private __construct() : mixed
Return values
mixed

fillReturnWithClassAttributes()

Fill the $return variable with class attributes

private static fillReturnWithClassAttributes(object $var, stdClass $return, int $maxDepth) : mixed
Parameters
$var : object
$return : stdClass
$maxDepth : int
Return values
mixed

Search results