[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
Abstract mechanism for dumping a Data object.
Author: | Nicolas Grekas <[email protected]> |
File Size: | 204 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
__construct($output = null, string $charset = null, int $flags = 0) X-Ref |
param: callable|resource|string|null $output A line dumper callable, an opened stream or an output path, defaults to static::$defaultOutput param: string|null $charset The default character encoding to use for non-UTF8 strings param: int $flags A bit field of static::DUMP_* constants to fine tune dumps representation |
setOutput($output) X-Ref |
Sets the output destination of the dumps. param: callable|resource|string $output A line dumper callable, an opened stream or an output path return: callable|resource|string The previous output destination |
setCharset(string $charset) X-Ref |
Sets the default character encoding to use for non-UTF8 strings. return: string The previous charset |
setIndentPad(string $pad) X-Ref |
Sets the indentation pad string. param: string $pad A string that will be prepended to dumped lines, repeated by nesting level return: string The previous indent pad |
dump(Data $data, $output = null) X-Ref |
Dumps a Data object. param: callable|resource|string|true|null $output A line dumper callable, an opened stream, an output path or true to return the dump return: string|null The dump as string when $output is true |
dumpLine(int $depth) X-Ref |
Dumps the current line. param: int $depth The recursive depth in the dumped structure for the line being dumped, |
echoLine(string $line, int $depth, string $indentPad) X-Ref |
Generic line dumper callback. |
utf8Encode(?string $s) X-Ref |
Converts a non-UTF-8 string to UTF-8. return: string|null |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |