dolibarr 20.0.2
|
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 34 of file DolPhpCollector.php.
PhpCollector::__construct | ( | $name = 'Error handler' | ) |
PHPCollector constructor.
string | $name | The name used by this collector widget. |
Definition at line 56 of file DolPhpCollector.php.
References name.
PhpCollector::collect | ( | ) |
Called by the DebugBar when data needs to be collected.
Definition at line 67 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 146 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 171 of file DolPhpCollector.php.
Referenced by errorHandler().
PhpCollector::getMessages | ( | ) |
Returns a list of messages ordered by their timestamp.
array{time:int} | $itemA Message A information |
array{time:int} | $itemB Message B information |
Definition at line 81 of file DolPhpCollector.php.
Referenced by collect().
PhpCollector::getName | ( | ) |
Returns the unique name of the collector.
Definition at line 131 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 109 of file DolPhpCollector.php.
References getName().