dolibarr
x.y.z
|
Class PhpCollector. More...
Public Member Functions | |
__construct ($name='Error handler') | |
PHPCollector constructor. More... | |
collect () | |
Called by the DebugBar when data needs to be collected. More... | |
getMessages () | |
Returns a list of messages ordered by their timestamp. More... | |
getWidgets () | |
Returns a hash where keys are control names and their values an array of options as defined in {. More... | |
getName () | |
Returns the unique name of the collector. More... | |
errorHandler ($severity, $message, $fileName, $line) | |
Exception error handler. More... | |
Private Member Functions | |
friendlyErrorType ($type) | |
Return error name from error code. More... | |
Class PhpCollector.
This class collects all PHP errors, notice, advices, trigger_error,... Supports 15 different types included.
Definition at line 12 of file DolPhpCollector.php.
PhpCollector::__construct | ( | $name = 'Error handler' | ) |
PHPCollector constructor.
string | $name | The name used by this collector widget. |
Definition at line 34 of file DolPhpCollector.php.
References name.
PhpCollector::collect | ( | ) |
Called by the DebugBar when data needs to be collected.
Definition at line 45 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 116 of file DolPhpCollector.php.
|
private |
Return error name from error code.
@info http://php.net/manual/es/errorfunc.constants.php
int | $type | Error code. |
Definition at line 141 of file DolPhpCollector.php.
PhpCollector::getMessages | ( | ) |
Returns a list of messages ordered by their timestamp.
Definition at line 59 of file DolPhpCollector.php.
Referenced by collect().
PhpCollector::getName | ( | ) |
Returns the unique name of the collector.
Definition at line 101 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 79 of file DolPhpCollector.php.
References getName().