\Pivot\Core\DebugServiceCollector

Abstract class for data collectors

Summary

Methods
Properties
Constants
setDefaultDataFormatter()
getDefaultDataFormatter()
setDataFormatter()
getDataFormatter()
formatVar()
formatDuration()
formatBytes()
__construct()
addService()
collect()
getName()
getWidgets()
getAssets()
No public properties found
No constants found
No protected methods found
$dataFormater
N/A
No private methods found
$defaultDataFormatter
$services
$callChain
N/A

Properties

$dataFormater

$dataFormater : 

Type

$defaultDataFormatter

$defaultDataFormatter : 

Type

$services

$services : 

Type

$callChain

$callChain : 

Type

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

__construct()

__construct() 

addService()

addService(  $name) 

Parameters

$name

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