◆ canSendHeaders()
static Whoops\Util\Misc::canSendHeaders |
( |
| ) |
|
|
static |
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
- bool
Definition at line 21 of file Misc.php.
22 {
23 return isset(
$_SERVER[
"REQUEST_URI"]) && !headers_sent();
24 }
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
References $_SERVER.
◆ isAjaxRequest()
static Whoops\Util\Misc::isAjaxRequest |
( |
| ) |
|
|
static |
Definition at line 26 of file Misc.php.
27 {
28 return (
29 !empty(
$_SERVER[
'HTTP_X_REQUESTED_WITH'])
30 && strtolower(
$_SERVER[
'HTTP_X_REQUESTED_WITH']) ==
'xmlhttprequest');
31 }
References $_SERVER.
◆ isCommandLine()
static Whoops\Util\Misc::isCommandLine |
( |
| ) |
|
|
static |
Check, if possible, that this execution was triggered by a command line.
- Returns
- bool
Definition at line 37 of file Misc.php.
38 {
39 return PHP_SAPI == 'cli';
40 }
◆ isLevelFatal()
static Whoops\Util\Misc::isLevelFatal |
( |
|
$level | ) |
|
|
static |
◆ translateErrorCode()
static Whoops\Util\Misc::translateErrorCode |
( |
|
$error_code | ) |
|
|
static |
The documentation for this class was generated from the following file:
- libs/composer/vendor/filp/whoops/src/Whoops/Util/Misc.php