\Pivot\Core\DebugResReqCollector

Abstract class for data collectors

Summary

Methods
Properties
Constants
setDefaultDataFormatter()
getDefaultDataFormatter()
setDataFormatter()
getDataFormatter()
formatVar()
formatDuration()
formatBytes()
collect()
getName()
getWidgets()
getAssets()
setRequest()
setResponse()
No public properties found
No constants found
No protected methods found
$dataFormater
N/A
No private methods found
$defaultDataFormatter
$request
$response
N/A

Properties

$dataFormater

$dataFormater : 

Type

$defaultDataFormatter

$defaultDataFormatter : 

Type

$request

$request : \Pivot\Core\Debug\request

$request object

Type

\Pivot\Core\Debug\request

$response

$response : \Pivot\Core\Debug\Response

Response

Type

\Pivot\Core\Debug\Response — object

Methods

setDefaultDataFormatter()

setDefaultDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface  $formater) 

Sets the default data formater instance used by all collectors subclassing this class

Parameters

\DebugBar\DataFormatter\DataFormatterInterface $formater

setDataFormatter()

setDataFormatter(\DebugBar\DataFormatter\DataFormatterInterface  $formater) : $this

Sets the data formater instance used by this collector

Parameters

\DebugBar\DataFormatter\DataFormatterInterface $formater

Returns

$this

formatVar()

formatVar(  $var) 

Parameters

$var

formatDuration()

formatDuration(  $seconds) 

Parameters

$seconds

formatBytes()

formatBytes(  $size,   $precision = 2) 

Parameters

$size
$precision

collect()

collect() 

getName()

getName() 

getWidgets()

getWidgets() : array

Returns a hash where keys are control names and their values an array of options as defined in {@see DebugBar\JavascriptRenderer::addControl()}

Returns

array

getAssets()

getAssets() : array

Returns an array with the following keys: - base_path - base_url - css: an array of filenames - js: an array of filenames

Returns

array

setRequest()

setRequest(  $request) : self

Set the value of $request object

Parameters

$request

Returns

self

setResponse()

setResponse(  $response) : self

Set the value of Response

Parameters

$response

Returns

self