Helpers
class Helpers
Rendering helpers for Debugger.
Methods
Returns HTML link to editor.
Returns link to editor.
No description
No description
No description
No description
No description
No description
No description
No description
Finds the best suggestion.
No description
No description
No description
No description
No description
No description
Captures PHP output into a string.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 24
static string
editorLink(string $file, int|null $line = null)
Returns HTML link to editor.
at line 54
static string|null
editorUri(string $file, int|null $line = null, string $action = 'open', string $search = '', string $replace = '', int|null $column = null)
Returns link to editor.
at line 81
static string
formatHtml(string $mask)
No description
at line 90
static string
escapeHtml(mixed $s)
No description
at line 96
static string
htmlToText(string $s)
No description
at line 102
static array|null
findTrace(array $trace, array|string $method, int|null $index = null)
No description
at line 122
static string
errorTypeToString(int $type)
| internal |
No description
at line 145
static string
getSource()
| internal |
No description
at line 163
static void
improveException(Throwable $e)
| internal |
No description
at line 236
static string
improveError(string $message)
| internal |
No description
at line 250
static string|null
guessClassFile(string $class)
| internal |
No description
at line 278
static string|null
getSuggestion(array $items, string $value)
| internal |
Finds the best suggestion.
at line 295
static bool
isHtmlMode()
| internal |
No description
at line 306
static bool
isAjax()
| internal |
No description
at line 313
static bool
isRedirect()
| internal |
No description
at line 320
static string
createId()
| internal |
No description
at line 327
static bool
isCli()
| internal |
No description
at line 334
static string
getNonceAttr()
| internal |
No description
at line 360
static string
capture(callable $func)
Captures PHP output into a string.
at line 374
static string
encodeString(string $s, int|null $maxLength = null, bool $showWhitespaces = true)
| internal |
No description
at line 436
static int
utf8Length(string $s)
| internal |
No description
at line 447
static bool
isUtf8(string $s)
| internal |
No description
at line 454
static string
truncateString(string $s, int $len, bool $utf8)
| internal |
No description
at line 472
static string
htmlToAnsi(string $s, array $colors)
| internal |
No description
at line 494
static string
minifyJs(string $s)
| internal |
No description
at line 539
static string
minifyCss(string $s)
| internal |
No description
at line 577
static bool
detectColors()
No description
at line 589
static array
getExceptionChain(Throwable $ex)
No description
at line 600
static void
traverseValue(mixed $val, callable $callback, array $skip = [], string|null $refId = null)
No description
at line 627
static array|null
decomposeFlags(int $flags, bool $set, array $constants)
| internal |
No description