On this page
Class TextFormatter
A Debugger formatter for generating unstyled plain text output.
Provides backwards compatible output with the historical output of Debugger::exportVar()
Method Summary
dump() public
Convert a tree of NodeInterface objects into a plain text string.
export() protected
Convert a tree of NodeInterface objects into a plain text string.
exportArray() protected
Export an array type object
exportObject() protected
Handles object to string conversion.
formatWrapper() public
Output a dump wrapper with location context.
Method Detail
dump() public
dump(Cake\Error\Debug\NodeInterface $node): string
Convert a tree of NodeInterface objects into a plain text string.
Parameters
Cake\Error\Debug\NodeInterface
$node-
The node tree to dump.
Returns
string
export() protected
export(Cake\Error\Debug\NodeInterface $var, int $indent): string
Convert a tree of NodeInterface objects into a plain text string.
Parameters
Cake\Error\Debug\NodeInterface
$var-
The node tree to dump.
int
$indent-
The current indentation level.
Returns
string
exportArray() protected
exportArray(Cake\Error\Debug\ArrayNode $var, int $indent): string
Export an array type object
Parameters
Cake\Error\Debug\ArrayNode
$var-
The array to export.
int
$indent-
The current indentation level.
Returns
string
exportObject() protected
exportObject(Cake\Error\Debug\ClassNodeCake\Error\Debug\ReferenceNode $var, int $indent): string
Handles object to string conversion.
Parameters
Cake\Error\Debug\ClassNodeCake\Error\Debug\ReferenceNode
$var-
Object to convert.
int
$indent-
Current indentation level.
Returns
string
See Also
formatWrapper() public
formatWrapper(string $contents, array $location): string
Output a dump wrapper with location context.
Parameters
string
$contentsarray
$location
Returns
string
© 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.TextFormatter.html