HtmlDumper
class HtmlDumper extends CliDumper
HtmlDumper dumps variables as HTML.
Properties
static | $defaultOutput | ||
static | $defaultColors | from CliDumper |
Methods
No description
Sets the output destination of the dumps.
Sets the default character encoding to use for non-UTF8 strings.
Sets the maximum number of characters per line for dumped strings.
Configures styles.
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.
Details
at line line 51
__construct(callable|resource|string|null $output = null, string $charset = null)
at line line 60
callable|resource|string
setOutput(callable|resource|string $output)
Sets the output destination of the dumps.
in AbstractDumper at line line 81
string
setCharset(string $charset)
Sets the default character encoding to use for non-UTF8 strings.
in AbstractDumper at line line 100
string
setIndentPad(string $pad)
Sets the indentation pad string.
at line line 103
dump(Data $data, callable|resource|string|null $output = null)
Dumps a Data object.
in CliDumper at line line 82
setColors(bool $colors)
Enables/disables colored output.
in CliDumper at line line 92
setMaxStringWidth(int $maxStringWidth)
Sets the maximum number of characters per line for dumped strings.
at line line 72
setStyles(array $styles)
Configures styles.
in CliDumper at line line 110
dumpScalar(Cursor $cursor, string $type, scalar $value)
Dumps a scalar value.
in CliDumper at line line 160
dumpString(Cursor $cursor, string $str, bool $bin, int $cut)
Dumps a string.
at line line 339
enterHash(Cursor $cursor, int $type, string $class, bool $hasChild)
Dumps while entering an hash.
at line line 359
leaveHash(Cursor $cursor, int $type, string $class, bool $hasChild, int $cut)
Dumps while leaving an hash.
at line line 83
setDumpHeader(string $header)
Sets an HTML header that will be dumped once in the output stream.
at line line 94
setDumpBoundaries(string $prefix, string $suffix)
Sets an HTML prefix and suffix that will encapse every single dump.