| 1 | <?php |
||
| 9 | class Misc |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Can we at this point in time send HTTP headers? |
||
| 13 | * |
||
| 14 | * Currently this checks if we are even serving an HTTP request, |
||
| 15 | * as opposed to running from a command line. |
||
| 16 | * |
||
| 17 | * If we are serving an HTTP request, we check if it's not too late. |
||
| 18 | * |
||
| 19 | * @return bool |
||
| 20 | */ |
||
| 21 | 2 | public static function canSendHeaders() |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Translate ErrorException code into the represented constant. |
||
| 28 | * |
||
| 29 | * @param int $error_code |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | 2 | public static function translateErrorCode($error_code) |
|
| 44 | } |
||
| 45 |