Dump
Less than 1 minute
Dump
Class Dump.
This class extends the Diagnostic class and provides various methods to handle and format debugging information. It supports multiple response formats including JSON, XML, text, and HTML.
Properties
data
private mixed $data
backtrack
private bool $backtrack
log
private array $log
Methods
__construct
Constructor.
public __construct({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$data | array | the data items to be dumped |
toggleBacktrace
Toggles the backtrace functionality.
public toggleBacktrace({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$value | bool | Optional. If true, enables backtrace. If false, disables backtrace. Default is true. |
addLogEntries
Adds log entries to the controller.
public addLogEntries({Array})
This method accepts an array of log entries and assigns it to the log property.
Parameters
Parameter | Type | Description |
---|---|---|
$entries | array | an array of log entries to be added |
json
Generates a JSON response with execution details and data.
public json({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$dump | array | optional array to include additional data in the response |
xmlrpc
This is the default XML response for the dump controller.
public xmlrpc({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$data | array | The data to be displayed in the dump |
text
This is the default text response for the dump controller.
public text({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$data | array | The data to be displayed in the dump |
html
public html({Array})
This is the default HTML response for the dump controller
Parameters
Parameter | Type | Description |
---|---|---|
$data | array | The data to be displayed in the dump |
Generated by Hazaar API Doc Generator