34 if (func_num_args() == 0) {
48 if (func_num_args() == 0) {
63 !empty(
$_SERVER[
'HTTP_X_REQUESTED_WITH'])
64 && strtolower(
$_SERVER[
'HTTP_X_REQUESTED_WITH']) ==
'xmlhttprequest');
77 'error' => Formatter::formatExceptionAsDataArray(
84 header(
'Content-Type: application/json');
87 echo json_encode($response);
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
Whoops - php errors for cool kids.
isAjaxRequest()
Check, if possible, that this execution was triggered by an AJAX request.
addTraceToOutput($returnFrames=null)
const DONE
Return constants that can be returned from Handler::handle to message the handler walker...
Catches an exception and converts it to a JSON response.
Whoops - php errors for cool kids.
static canSendHeaders()
Can we at this point in time send HTTP headers?
Abstract implementation of a Handler.
onlyForAjaxRequests($onlyForAjaxRequests=null)