23 return isset(
$_SERVER[
"REQUEST_URI"]) && !headers_sent();
29 !empty(
$_SERVER[
'HTTP_X_REQUESTED_WITH'])
30 && strtolower(
$_SERVER[
'HTTP_X_REQUESTED_WITH']) ==
'xmlhttprequest');
39 return PHP_SAPI ==
'cli';
50 $constants = get_defined_constants(
true);
51 if (array_key_exists(
'Core', $constants)) {
52 foreach ($constants[
'Core'] as $constant => $value) {
53 if (substr($constant, 0, 2) ==
'E_' && $value == $error_code) {
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
static translateErrorCode($error_code)
Translate ErrorException code into the represented constant.
static isCommandLine()
Check, if possible, that this execution was triggered by a command line.
static canSendHeaders()
Can we at this point in time send HTTP headers?
Whoops - php errors for cool kids.
static isLevelFatal($level)
Determine if an error level is fatal (halts execution)