Error
in package
Tags
Table of Contents
Methods
- __construct() : mixed
- handler() : void
- Custom error handler that logs errors to helPHP.log.
- handler_to_trash() : bool
- Dummy error handler for suppressed errors.
- log() : void
- Logs arbitrary data to helPHP.log, with optional short format.
- log_backtrace() : void
- Logs a PHP backtrace to helPHP.log.
- message() : void
- Add an error message to send that will be displayed in the UI Same as \helPHP\libs\Notification::message, but not the same css in the popup.
Methods
__construct()
public
__construct() : mixed
handler()
Custom error handler that logs errors to helPHP.log.
public
static handler(int $errno, string $errstr, string $errfile, int $errline) : void
Parameters
- $errno : int
-
Error number.
- $errstr : string
-
Error message.
- $errfile : string
-
File where error occurred.
- $errline : int
-
Line number of error.
handler_to_trash()
Dummy error handler for suppressed errors.
public
static handler_to_trash(mixed $errno, mixed $errstr, mixed $errfile, mixed $errline) : bool
$errno $errstr $errfile $errline ar there juste for compatibility they are unsused
Parameters
- $errno : mixed
- $errstr : mixed
- $errfile : mixed
- $errline : mixed
Return values
bool —Always returns false.
log()
Logs arbitrary data to helPHP.log, with optional short format.
public
static log(mixed $data[, bool $short_form = false ]) : void
Parameters
- $data : mixed
-
Data to log.
- $short_form : bool = false
-
If true, logs in short format.
log_backtrace()
Logs a PHP backtrace to helPHP.log.
public
static log_backtrace([bool $show_args = false ]) : void
Parameters
- $show_args : bool = false
-
Whether to show function arguments in the log.
Return values
void —(it's writing in helphp.log file)
message()
Add an error message to send that will be displayed in the UI Same as \helPHP\libs\Notification::message, but not the same css in the popup.
public
static message(string $tl_key[, mixed $replacement = false ]) : void
Parameters
- $tl_key : string
-
from libs\tl\tl_common-...
- $replacement : mixed = false
-
array or string for tl replacement