Documentation

DumpDataCollector extends DataCollector
in package
implements DataDumperInterface

DataCollector.

Tags
author

Nicolas Grekas p@tchwork.com

Interfaces, Classes and Traits

DataDumperInterface
DataDumperInterface for dumping Data objects.

Table of Contents

$data  : array<string|int, mixed>|Data
$charset  : mixed
$cloner  : ClonerInterface
$clonesCount  : mixed
$clonesIndex  : mixed
$dataCount  : mixed
$dumper  : mixed
$dumperIsInjected  : mixed
$fileLinkFormat  : mixed
$isCollected  : mixed
$requestStack  : mixed
$rootRefs  : mixed
$stopwatch  : mixed
$valueExporter  : ValueExporter
__clone()  : mixed
__construct()  : mixed
__destruct()  : mixed
collect()  : mixed
dump()  : mixed
getDumps()  : mixed
getDumpsCount()  : mixed
getName()  : mixed
reset()  : mixed
serialize()  : mixed
unserialize()  : mixed
cloneVar()  : Data
Converts the variable into a serializable Data instance.
getCasters()  : array<string|int, callable>
varToString()  : string
Converts a PHP variable to a string.
doDump()  : mixed
htmlEncode()  : mixed

Properties

Methods

__construct()

public __construct([Stopwatch $stopwatch = null ][, mixed $fileLinkFormat = null ][, mixed $charset = null ][, RequestStack $requestStack = null ][, DataDumperInterface $dumper = null ]) : mixed
Parameters
$stopwatch : Stopwatch = null
$fileLinkFormat : mixed = null
$charset : mixed = null
$requestStack : RequestStack = null
$dumper : DataDumperInterface = null
Return values
mixed

getDumps()

public getDumps(mixed $format[, mixed $maxDepthLimit = -1 ][, mixed $maxItemsPerDepth = -1 ]) : mixed
Parameters
$format : mixed
$maxDepthLimit : mixed = -1
$maxItemsPerDepth : mixed = -1
Return values
mixed

unserialize()

public unserialize(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

cloneVar()

Converts the variable into a serializable Data instance.

protected cloneVar(mixed $var) : Data

This array can be displayed in the template using the VarDumper component.

Parameters
$var : mixed
Return values
Data

getCasters()

protected getCasters() : array<string|int, callable>
Return values
array<string|int, callable>

The casters to add to the cloner

varToString()

Converts a PHP variable to a string.

protected varToString(mixed $var) : string
Parameters
$var : mixed

A PHP variable

Tags
deprecated

since version 3.2, to be removed in 4.0. Use cloneVar() instead.

Return values
string

The string representation of the variable

doDump()

private doDump(mixed $data, mixed $name, mixed $file, mixed $line) : mixed
Parameters
$data : mixed
$name : mixed
$file : mixed
$line : mixed
Return values
mixed

htmlEncode()

private htmlEncode(mixed $s) : mixed
Parameters
$s : mixed
Return values
mixed

Search results