\Whoops\UtilMisc

Summary

Methods
Properties
Constants
canSendHeaders()
isAjaxRequest()
isCommandLine()
translateErrorCode()
isLevelFatal()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

canSendHeaders()

canSendHeaders() : boolean

Can we at this point in time send HTTP headers?

Currently this checks if we are even serving an HTTP request, as opposed to running from a command line.

If we are serving an HTTP request, we check if it's not too late.

Returns

boolean

isAjaxRequest()

isAjaxRequest() 

isCommandLine()

isCommandLine() : boolean

Check, if possible, that this execution was triggered by a command line.

Returns

boolean

translateErrorCode()

translateErrorCode(integer  $error_code) : string

Translate ErrorException code into the represented constant.

Parameters

integer $error_code

Returns

string

isLevelFatal()

isLevelFatal(integer  $level) : boolean

Determine if an error level is fatal (halts execution)

Parameters

integer $level

Returns

boolean