PrintOptions
MMO\core\printers · 1 symbol · generated 30 Sep 2026
PrintOptions
PrintOptions.php:23A printer's options as named arguments: new PrintOptions(escape: true) stands for ['escape' => true].
- Namespace
MMO\core\printers- Implements
- iOptions
Index
| KEYS | the key an option is read under, when it is not the property's name | |
| basepath readonly | ||
| decimalSeparator readonly | ||
| dump readonly | ||
| eol readonly | ||
| escape readonly | ||
| fields readonly | ||
| headers readonly | ||
| ignoreTraces readonly | ||
| indent readonly | ||
| lang readonly | ||
| maxLevel readonly | ||
| precision readonly | ||
| separator readonly | ||
| store readonly | ||
| thousandSeparator readonly | ||
| tracesFilter readonly | ||
| toArray() | ||
| __construct($escape, $dump, $maxLevel, $indent, $separator, $precision, $decimalSeparator, $thousandSeparator, $lang, $basepath, $ignoreTraces, $tracesFilter, $fields, $store, $headers, $eol) |
Constants1
KEYS
the key an option is read under, when it is not the property's name
Properties16
basepath
readonlydecimalSeparator
readonlydump
readonlyeol
readonlyescape
readonlyfields
readonlyheaders
readonlyignoreTraces
readonlyindent
readonlylang
readonlymaxLevel
readonlyprecision
readonlyseparator
readonlystore
readonlythousandSeparator
readonlytracesFilter
readonlyMethods2
toArray()
PrintOptions.php:80| returns | array | mixed> the options that are set, under the keys the printers read |
__construct($escape, $dump, $maxLevel, $indent, $separator, $precision, $decimalSeparator, $thousandSeparator, $lang, $basepath, $ignoreTraces, $tracesFilter, $fields, $store, $headers, $eol)
PrintOptions.php:57| $escape = null | null | bool | HtmlPrinter: HTML-escape strings. Print untrusted text (user input) with it: without it, HtmlPrinter prints a string as markup. |
| $dump = null | null | bool | the debug rendering of \MMO\dump(): types, sizes, protected and private properties -- an entity's hidden one (a password's hash) by its name only, [hidden]. |
| $maxLevel = null | null | int | how many levels of nested values are printed; deeper ones are only described. |
| $indent = null | string | int | null | the indent of nested lines: a number of spaces, or the string itself. |
| $separator = null | null | string | between the items of a list (TextPrinter, default ','), or the cells of a row (CsvPrinter, default ';'). |
| $precision = null | null | int | the number of decimals of a number. |
| $decimalSeparator = null | null | string | used with $precision (TextPrinter default ',', CsvPrinter '.'). |
| $thousandSeparator = null | null | string | used with $precision (TextPrinter default ' ', CsvPrinter ''). |
| $lang = null | null | string | the language of dates: fr_FR, en_US... (default: LANGUAGE). |
| $basepath = null | null | string | filenames are printed relative to it (default: the application's base path). |
| $ignoreTraces = null | null | bool | print a log without its backtrace. |
| $tracesFilter = null | null | array | the calls left out of a log's backtrace (Class->method). |
| $fields = null | null | array | JsonPrinter, TextPrinter (HtmlPrinter...), XlsxPrinter, CsvPrinter: the entity fields exported (default: all). A hidden one is left out, even named. |
| $store = null | null | bool | JsonPrinter: an entity as its repository stores it, the entities it holds as links (its hidden properties included: never for a response). |
| $headers = null | null | array | CsvPrinter, XlsxPrinter: the titles of the header row, in column order (or field => title). |
| $eol = null | null | string | CsvPrinter: the line ending (default "\r\n"). |