class Panic (View source)

Properties

array $info

List info error.

array $collapsePaths

Path stack trace.

int $maxDepth

Berapa dalam array/object yang harus ditampilkan oleh dump()?

int $maxLength

Berapa banyak karakter harus ditampilkan oleh dump()?

array $keysToHide

List key array yang ingin disembunyikan dari tampilan error debugger.

Methods

__construct()

No description

addPanel(callable $panel)

Tambahkan panel baru.

addAction(callable $action)

Tambahkan action baru.

void
render(Throwable|Exception $e)

Tampilkan halaman blue screen.

void
renderToFile(Throwable|Exception $e, string $file)

Simpan tampilan blue screen ke file.

static string|null
highlightFile(string $file, int $line, int $lines = 15, array $vars = null)

Terapkan syntax highlighter ke isi file.

static string
highlightPhp(string $source, int $line, int $lines = 15, array $vars = null)

Terapkan syntax highlighter pada string kode PHP.

static string
highlightLine($html, $line, $lines = 15)

Highlight sebuah baris kode.

bool
isCollapsed(string $file)

Haruskah file stack trace di-collapse?

renderPhpInfo()

No description

Details

__construct()

No description

Panic addPanel(callable $panel)

Tambahkan panel baru.

Parameters

callable $panel

Return Value

Panic

Panic addAction(callable $action)

Tambahkan action baru.

Parameters

callable $action

Return Value

Panic

void render(Throwable|Exception $e)

Tampilkan halaman blue screen.

Parameters

Throwable|Exception $e

Return Value

void

void renderToFile(Throwable|Exception $e, string $file)

Simpan tampilan blue screen ke file.

Parameters

Throwable|Exception $e
string $file

Return Value

void

static string|null highlightFile(string $file, int $line, int $lines = 15, array $vars = null)

Terapkan syntax highlighter ke isi file.

Parameters

string $file
int $line
int $lines
array $vars

Return Value

string|null

static string highlightPhp(string $source, int $line, int $lines = 15, array $vars = null)

Terapkan syntax highlighter pada string kode PHP.

Parameters

string $source
int $line
int $lines
array $vars

Return Value

string

static string highlightLine($html, $line, $lines = 15)

Highlight sebuah baris kode.

Parameters

$html
$line
$lines

Return Value

string

bool isCollapsed(string $file)

Haruskah file stack trace di-collapse?

Parameters

string $file

Return Value

bool

renderPhpInfo()

No description