PhpCollector
class PhpCollector extends DataCollector implements Renderable
This class collects all PHP errors, notice, advices, trigger_error, .
.. Supports 15 different types included.
Properties
protected string | $name | Collector name. | |
protected array | $messages | List of messages. Each item includes: 'message', 'message_html', 'is_string', 'label', 'time'. |
Methods
PHPCollector constructor.
Called by the DebugBar when data needs to be collected.
Returns a list of messages ordered by their timestamp.
Returns a hash where keys are control names and their values an array of options as defined in {see DebugBar\JavascriptRenderer::addControl()}
Returns the unique name of the collector.
Exception error handler. Called from constructor with set_error_handler to add all details.
Return error name from error code.
Details
at line 38
__construct(string $name = 'Error handler')
PHPCollector constructor.
at line 49
array
collect()
Called by the DebugBar when data needs to be collected.
at line 63
array
getMessages()
Returns a list of messages ordered by their timestamp.
at line 83
array
getWidgets()
Returns a hash where keys are control names and their values an array of options as defined in {see DebugBar\JavascriptRenderer::addControl()}
at line 105
string
getName()
Returns the unique name of the collector.
at line 118
errorHandler(int $severity, string $message, string $fileName, int $line)
Exception error handler. Called from constructor with set_error_handler to add all details.
at line 143
private string
friendlyErrorType(int $type)
Return error name from error code.