class Helpers

Rendering helpers for Debugger.

Methods

static string
editorLink(string $file, int $line = null)

Returns HTML link to editor.

static string|null
editorUri(string $file, int $line = null, string $action = 'open', string $search = '', string $replace = '')

Returns link to editor.

static string
formatHtml(string $mask)

No description

static string
escapeHtml($s)

No description

static array|null
findTrace(array $trace, $method, int $index = null)

No description

static string
getClass($obj)

No description

static Throwable
fixStack(Throwable $exception)

No description

static string
fixEncoding(string $s)

No description

static string
errorTypeToString(int $type)

No description

static string
getSource()

No description

static void
improveException(Throwable $e)

No description

static string
improveError(string $message, array $context = [])

No description

static string|null
guessClassFile(string $class)

No description

static string|null
getSuggestion(array $items, string $value)

Finds the best suggestion.

static bool
isHtmlMode()

No description

static bool
isAjax()

No description

static string|null
getNonce()

No description

static string
capture(callable $func)

Captures PHP output into a string.

Details

Returns HTML link to editor.

Parameters

string $file
int $line

Return Value

string

at line 47
static string|null editorUri(string $file, int $line = null, string $action = 'open', string $search = '', string $replace = '')

Returns link to editor.

Parameters

string $file
int $line
string $action
string $search
string $replace

Return Value

string|null

at line 69
static string formatHtml(string $mask)

No description

Parameters

string $mask

Return Value

string

at line 78
static string escapeHtml($s)

No description

Parameters

$s

Return Value

string

at line 84
static array|null findTrace(array $trace, $method, int $index = null)

No description

Parameters

array $trace
$method
int $index

Return Value

array|null

at line 102
static string getClass($obj)

No description

Parameters

$obj

Return Value

string

at line 109
static Throwable fixStack(Throwable $exception)

internal  
 

No description

Parameters

Throwable $exception

Return Value

Throwable

at line 137
static string fixEncoding(string $s)

internal  
 

No description

Parameters

string $s

Return Value

string

at line 144
static string errorTypeToString(int $type)

internal  
 

No description

Parameters

int $type

Return Value

string

at line 168
static string getSource()

internal  
 

No description

Return Value

string

at line 182
static void improveException(Throwable $e)

internal  
 

No description

Parameters

Throwable $e

Return Value

void

at line 235
static string improveError(string $message, array $context = [])

internal  
 

No description

Parameters

string $message
array $context

Return Value

string

at line 254
static string|null guessClassFile(string $class)

internal  
 

No description

Parameters

string $class

Return Value

string|null

at line 280
static string|null getSuggestion(array $items, string $value)

internal  
 

Finds the best suggestion.

Parameters

array $items
string $value

Return Value

string|null

at line 298
static bool isHtmlMode()

internal  
 

No description

Return Value

bool

at line 307
static bool isAjax()

internal  
 

No description

Return Value

bool

at line 314
static string|null getNonce()

internal  
 

No description

Return Value

string|null

at line 340
static string capture(callable $func)

Captures PHP output into a string.

Parameters

callable $func

Return Value

string