PHP Class Doctrine\Common\Util\Debug

Since: 2.0
Author: Guilherme Blanco ([email protected])
Author: Jonathan Wage ([email protected])
Author: Roman Borschel ([email protected])
Author: Giorgio Sironi ([email protected])
Afficher le fichier Open project: doctrine/common Class Usage Examples

Méthodes publiques

Méthode Description
dump ( mixed $var, integer $maxDepth = 2, boolean $stripTags = true, boolean $echo = true ) : string Prints a dump of the public, protected and private properties of $var.
export ( mixed $var, integer $maxDepth ) : mixed
toString ( object $obj ) : string Returns a string representation of an object.

Private Methods

Méthode Description
__construct ( ) Private constructor (prevents instantiation).
fillReturnWithClassAttributes ( object $var, stdClass $return, integer $maxDepth ) : mixed Fill the $return variable with class attributes

Method Details

dump() public static méthode

Prints a dump of the public, protected and private properties of $var.
public static dump ( mixed $var, integer $maxDepth = 2, boolean $stripTags = true, boolean $echo = true ) : string
$var mixed The variable to dump.
$maxDepth integer The maximum nesting level for object properties.
$stripTags boolean Whether output should strip HTML tags.
$echo boolean Send the dumped value to the output buffer
Résultat string

export() public static méthode

public static export ( mixed $var, integer $maxDepth ) : mixed
$var mixed
$maxDepth integer
Résultat mixed

toString() public static méthode

Returns a string representation of an object.
public static toString ( object $obj ) : string
$obj object
Résultat string