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
Details
at line 23
static string
editorLink(string $file, int|null $line = null)
Returns HTML link to editor.
at line 53
static string|null
editorUri(string $file, int|null $line = null, string $action = 'open', string $search = '', string $replace = '')
Returns link to editor.
at line 76
static string
formatHtml(string $mask)
No description
at line 85
static string
escapeHtml($s)
No description
at line 91
static array|null
findTrace(array $trace, $method, int|null $index = null)
No description
at line 110
static string
getClass($obj)
No description
at line 148
static string
errorTypeToString(int $type)
internal |
No description
at line 172
static string
getSource()
internal |
No description
at line 190
static void
improveException(Throwable $e)
internal |
No description
at line 243
static string
improveError(string $message, array $context = [])
internal |
No description
at line 263
static string|null
guessClassFile(string $class)
internal |
No description
at line 291
static string|null
getSuggestion(array $items, string $value)
internal |
Finds the best suggestion.
at line 310
static bool
isHtmlMode()
internal |
No description
at line 320
static bool
isAjax()
internal |
No description
at line 327
static bool
isRedirect()
internal |
No description
at line 334
static string
createId()
internal |
No description
at line 341
static bool
isCli()
internal |
No description
at line 348
static string|null
getNonce()
internal |
No description
at line 374
static string
capture(callable $func)
Captures PHP output into a string.
at line 388
static string
encodeString(string $s, int|null $maxLength = null, bool $showWhitespaces = true)
internal |
No description
at line 452
static int
utf8Length(string $s)
internal |
No description
at line 459
static bool
isUtf8(string $s)
internal |
No description
at line 466
static string
truncateString(string $s, int $len, bool $utf)
internal |
No description
at line 484
static string
minifyJs(string $s)
internal |
No description
at line 530
static string
minifyCss(string $s)
internal |
No description
at line 569
static bool
detectColors()
No description
at line 586
static array
getExceptionChain(Throwable $ex)
No description