|
dolibarr 18.0.8
|
Class PhpCollector. More...


Public Member Functions | |
| __construct ($name='Error handler') | |
| PHPCollector constructor. | |
| collect () | |
| Called by the DebugBar when data needs to be collected. | |
| getMessages () | |
| Returns a list of messages ordered by their timestamp. | |
| getWidgets () | |
| Returns a hash where keys are control names and their values an array of options as defined in {. | |
| getName () | |
| Returns the unique name of the collector. | |
| errorHandler ($severity, $message, $fileName, $line) | |
| Exception error handler. | |
Private Member Functions | |
| friendlyErrorType ($type) | |
| Return error name from error code. | |
Class PhpCollector.
This class collects all PHP errors, notice, advices, trigger_error,... Supports 15 different types included.
Definition at line 33 of file DolPhpCollector.php.
| PhpCollector::__construct | ( | $name = 'Error handler' | ) |
PHPCollector constructor.
| string | $name | The name used by this collector widget. |
Definition at line 55 of file DolPhpCollector.php.
References name.
| PhpCollector::collect | ( | ) |
Called by the DebugBar when data needs to be collected.
Definition at line 66 of file DolPhpCollector.php.
References getMessages().
| PhpCollector::errorHandler | ( | $severity, | |
| $message, | |||
| $fileName, | |||
| $line ) |
Exception error handler.
Called from constructor with set_error_handler to add all details.
| int | $severity | Error type. |
| string | $message | Message of error. |
| string | $fileName | File where error is generated. |
| int | $line | Line number where error is generated. |
Definition at line 137 of file DolPhpCollector.php.
References friendlyErrorType().
|
private |
Return error name from error code.
@info http://php.net/manual/es/errorfunc.constants.php
| int | $type | Error code. |
Definition at line 162 of file DolPhpCollector.php.
Referenced by errorHandler().
| PhpCollector::getMessages | ( | ) |
Returns a list of messages ordered by their timestamp.
Definition at line 80 of file DolPhpCollector.php.
Referenced by collect().
| PhpCollector::getName | ( | ) |
Returns the unique name of the collector.
Definition at line 122 of file DolPhpCollector.php.
Referenced by getWidgets().
| PhpCollector::getWidgets | ( | ) |
Returns a hash where keys are control names and their values an array of options as defined in {.
Definition at line 100 of file DolPhpCollector.php.
References getName().