A Debugger formatter for generating interactive styled HTML output.
stringRandom id so that HTML ids are not shared between dump outputs.
boolConstructor.
Convert a tree of NodeInterface objects into HTML
Generate the CSS and Javascript for dumps
Check if the current environment is not a CLI context
Convert a tree of NodeInterface objects into HTML
Export an array type object
Handles object to string conversion.
Output a dump wrapper with location context.
Style text with HTML class names
__construct()
Constructor.
dump(Cake\Error\Debug\NodeInterface $node): string
Convert a tree of NodeInterface objects into HTML
Cake\Error\Debug\NodeInterface $node The node tree to dump.
stringdumpHeader(): string
Generate the CSS and Javascript for dumps
Only output once per process as we don't need it more than once.
stringenvironmentMatches(): bool
Check if the current environment is not a CLI context
boolexport(Cake\Error\Debug\NodeInterface $var, int $indent): string
Convert a tree of NodeInterface objects into HTML
Cake\Error\Debug\NodeInterface $var The node tree to dump.
int $indent The current indentation level.
stringexportArray(Cake\Error\Debug\ArrayNode $var, int $indent): string
Export an array type object
Cake\Error\Debug\ArrayNode $var The array to export.
int $indent The current indentation level.
stringexportObject(Cake\Error\Debug\ClassNodeCake\Error\Debug\ReferenceNode $var, int $indent): string
Handles object to string conversion.
Cake\Error\Debug\ClassNodeCake\Error\Debug\ReferenceNode $var Object to convert.
int $indent The current indentation level.
stringformatWrapper(string $contents, array $location): string
Output a dump wrapper with location context.
string $contents array $location stringstyle(string $style, string $text): string
Style text with HTML class names
string $style The style name to use.
string $text The text to style.
stringRandom id so that HTML ids are not shared between dump outputs.
stringbool
© 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.4/class-Cake.Error.Debug.HtmlFormatter.html