A Debugger formatter for generating interactive styled HTML output.
string
Random id so that HTML ids are not shared between dump outputs.
bool
__construct()
Constructor.
dump(\Cake\Error\Debug\NodeInterface $node)
Convert a tree of NodeInterface objects into HTML
\Cake\Error\Debug\NodeInterface
$node The node tree to dump.
string
dumpHeader()
Generate the CSS and Javascript for dumps
Only output once per process as we don't need it more than once.
string
environmentMatches()
Check if the current environment is not a CLI context
bool
export(\Cake\Error\Debug\NodeInterface $var, int $indent)
Convert a tree of NodeInterface objects into HTML
\Cake\Error\Debug\NodeInterface
$var The node tree to dump.
int
$indent The current indentation level.
string
exportArray(\Cake\Error\Debug\ArrayNode $var, int $indent)
Export an array type object
\Cake\Error\Debug\ArrayNode
$var The array to export.
int
$indent The current indentation level.
string
Exported array.
exportObject(mixed $var, int $indent)
Handles object to string conversion.
\Cake\Error\Debug\ClassNode|\Cake\Error\Debug\ReferenceNode
$var Object to convert.
int
$indent The current indentation level.
string
formatWrapper(string $contents, array $location)
Output a dump wrapper with location context.
string
$contents The contents to wrap and return
array
$location The file and line the contents came from.
string
style(string $style, string $text)
Style text with HTML class names
string
$style The style name to use.
string
$text The text to style.
string
The styled output.
Random id so that HTML ids are not shared between dump outputs.
string
bool
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.1/class-Cake.Error.Debug.HtmlFormatter.html