HtmlDumper
class HtmlDumper extends CliDumper
HtmlDumper dumps variables as HTML.
Constants
DUMP_LIGHT_ARRAY |
|
DUMP_STRING_LENGTH |
|
DUMP_COMMA_SEPARATOR |
|
DUMP_TRAILING_COMMA |
|
Properties
static | $defaultOutput | ||
protected | $line | from AbstractDumper | |
protected | $lineDumper | from AbstractDumper | |
protected | $outputStream | from AbstractDumper | |
protected | $decimalPoint | from AbstractDumper | |
protected | $indentPad | from AbstractDumper | |
protected | $flags | from AbstractDumper | |
static | $defaultColors | from CliDumper | |
protected | $colors | ||
protected | $maxStringWidth | from CliDumper | |
protected | $styles | ||
static protected | $controlCharsRx | from CliDumper | |
static protected | $controlCharsMap | from CliDumper | |
protected | $collapseNextHash | from CliDumper | |
protected | $expandNextHash | from CliDumper | |
static protected | $themes | ||
protected | $dumpHeader | ||
protected | $dumpPrefix | ||
protected | $dumpSuffix | ||
protected | $dumpId | ||
protected | $headerIsDumped | ||
protected | $lastDepth |
Methods
No description
Sets the output destination of the dumps.
Sets the default character encoding to use for non-UTF8 strings.
Dumps the current line.
Generic line dumper callback.
Sets the maximum number of characters per line for dumped strings.
Configures styles.
Decorates a value with some style.
No description
Configures display options.
Sets an HTML header that will be dumped once in the output stream.
Sets an HTML prefix and suffix that will encapse every single dump.
Dumps the HTML header.
Details
callable|resource|string
setOutput(callable|resource|string $output)
Sets the output destination of the dumps.
dump(Data $data, callable|resource|string|true|null $output = null, array $extraDisplayOptions = array())
Dumps a Data object.
setMaxStringWidth(int $maxStringWidth)
Sets the maximum number of characters per line for dumped strings.
leaveHash(Cursor $cursor, int $type, string $class, bool $hasChild, int $cut)
Dumps while leaving an hash.
protected
dumpEllipsis(Cursor $cursor, bool $hasChild, int $cut)
Dumps an ellipsis for cut children.
protected string
style(string $style, string $value, array $attr = array())
Decorates a value with some style.