Methods summary
public static
float
|
#
Timer( string $name = NULL )
Parameters
Returns
float Elapsed seconds.
Inheritdocs
|
public static
mixed
|
#
Dump( mixed $value, boolean $return = FALSE, boolean $exit = FALSE )
Parameters
- $value
- Variable to dump.
- $return
- Let's return output instead of printing it.
- $exit
TRUE for last dump call by xxx(); method
to dump and exit; .
Returns
mixed Variable itself or dumped variable string.
Inheritdocs
|
public static
mixed
|
#
BarDump( mixed $value, string $title = NULL, array $options = [] )
Parameters
- $value
- Variable to dump.
- $title
- Optional title.
- $options
- Dumper options.
Returns
mixed Variable itself.
Inheritdocs
|
public static
string
|
#
Log( mixed|Exception|Throwable $value, string $priority = \MvcCore\IDebug::INFO )
Parameters
Returns
string Logging filename full path.
Inheritdocs
|
public static
|
|
public static
|
|
protected static
float
|
#
timerHandler( string $name = NULL )
Starts/stops stopwatch.
Parameters
Returns
float Elapsed seconds.
|
protected static
string
|
#
dumpHandler( mixed $value, string $title = NULL, array $options = [] )
Dump any variable as string with output buffering and return dumped string.
If given $options array contains record about bar boolean - to render
dumped string in debug bar - store the dump record for HTML response later
rendering in shutdown handler or render dumped string directly in HTTP
header for AJAX response, before any output body.
Dump any variable as string with output buffering and return dumped string.
If given $options array contains record about bar boolean - to render
dumped string in debug bar - store the dump record for HTML response later
rendering in shutdown handler or render dumped string directly in HTTP
header for AJAX response, before any output body.
Parameters
- $value
- Variable to dump.
- $title
- Optional title.
- $options
- Dumper options.
Returns
string
|
protected static
string
|
#
storeLogRecord( mixed $value, string $priority )
Store given log record in text file.
Return full path where the message has been written.
Store given log record in text file.
Return full path where the message has been written.
Parameters
Returns
string
|
protected static
array
|
#
formatDebugDumps( )
Format all dump records into single string with source PHP script file
link element and remove all useless new lines in PHP dumps.
Format all dump records into single string with source PHP script file
link element and remove all useless new lines in PHP dumps.
Returns
array An array with formatted dumps string and boolean about last dump before script exit.
|
protected static
array
|
#
formatDebugDump( array $dumpRecord, string|null $appRoot = NULL )
Format one dump record into single string with source PHP script file
link element and remove all useless new lines in PHP dumps.
Format one dump record into single string with source PHP script file
link element and remove all useless new lines in PHP dumps.
Parameters
- $dumpRecord
- Dump record from
self::$dumps with items under indexes: 0 => dump string, 1 => title, 2 => options.
- $appRoot
Returns
array An array with formatted dump string and boolean about last dump before script exit.
|
protected static
boolean
|
#
isHtmlResponse( )
Get TRUE if response is considered as HTML type.
Get TRUE if response is considered as HTML type.
Returns
boolean
|