DebugR
extends Base
in package
DebugR, send additional debugging information via HTTP heders.
Tags
Table of Contents
- $bytesSent : int
- Monitor the number of bytes sent, to prevent sending more than 240KiB in DebugR headers. (Leaving 16KiB for normal headers).
- $headerAdd : callable
- Callback for sending a HTTP header.
- $headerRemove : callable
- Callback for removing a HTTP header.
- $increments : mixed
- __call() : mixed
- Report that the $method doesn't exist.
- __callStatic() : mixed
- Report that the $method doesn't exist.
- __get() : mixed
- Report that $property doesn't exist.
- __set() : mixed
- Report that $property doesn't exist and set the property to the given $value.
- __toString() : string
- The object is used as an string.
- dump() : mixed
- Send a dump() to the <body> element.
- error() : mixed
- Send an message to console.error().
- html() : mixed
- Send html prefixed with a DebugR header showning the request.
- info() : mixed
- Send an message to console.info().
- isEnabled() : bool
- Check if DebugR is enabled.
- log() : mixed
- Send an variable to console.log().
- send() : mixed
- warning() : mixed
- Send an message to console.\Sledgehammer\warning().
Properties
$bytesSent
Monitor the number of bytes sent, to prevent sending more than 240KiB in DebugR headers. (Leaving 16KiB for normal headers).
public
static int
$bytesSent
Tags
$headerAdd
Callback for sending a HTTP header.
public
static callable
$headerAdd
= 'header'
$headerRemove
Callback for removing a HTTP header.
public
static callable
$headerRemove
= 'header_remove'
$increments
public
static mixed
$increments
= []
Methods
__call()
Report that the $method doesn't exist.
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Return values
mixed —__callStatic()
Report that the $method doesn't exist.
public
static __callStatic(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Return values
mixed —__get()
Report that $property doesn't exist.
public
__get(string $property) : mixed
Parameters
- $property : string
Return values
mixed —__set()
Report that $property doesn't exist and set the property to the given $value.
public
__set(string $property, mixed $value) : mixed
Parameters
- $property : string
- $value : mixed
Return values
mixed —__toString()
The object is used as an string.
public
__toString() : string
Return values
string —dump()
Send a dump() to the <body> element.
public
static dump(mixed $variable) : mixed
Parameters
- $variable : mixed
Return values
mixed —error()
Send an message to console.error().
public
static error(string $message) : mixed
Parameters
- $message : string
-
The error message
Return values
mixed —html()
Send html prefixed with a DebugR header showning the request.
public
static html(string $html) : mixed
Parameters
- $html : string
Return values
mixed —info()
Send an message to console.info().
public
static info(string $message) : mixed
Parameters
- $message : string
Return values
mixed —isEnabled()
Check if DebugR is enabled.
public
static isEnabled() : bool
Return values
bool —log()
Send an variable to console.log().
public
static log(mixed $variable) : mixed
Parameters
- $variable : mixed
Return values
mixed —send()
public
static send(string $label, string $message[, string $overwrite = false ]) : mixed
Parameters
- $label : string
- $message : string
- $overwrite : string = false
Return values
mixed —warning()
Send an message to console.\Sledgehammer\warning().
public
static warning(string $message) : mixed
Parameters
- $message : string
-
The warning message