Properties

$useOpenHandlerWhenSendingDataHeaders

$useOpenHandlerWhenSendingDataHeaders : 

Type

$collectors

$collectors : 

Type

$data

$data : 

Type

$jsRenderer

$jsRenderer : 

Type

$requestIdGenerator

$requestIdGenerator : 

Type

$requestId

$requestId : 

Type

$storage

$storage : 

Type

$httpDriver

$httpDriver : 

Type

$stackSessionNamespace

$stackSessionNamespace : 

Type

$stackAlwaysUseSessionStorage

$stackAlwaysUseSessionStorage : 

Type

Methods

addCollector()

addCollector(\DebugBar\DataCollector\DataCollectorInterface  $collector) : $this

Adds a data collector

Parameters

\DebugBar\DataCollector\DataCollectorInterface $collector

Throws

\DebugBar\DebugBarException

Returns

$this

hasCollector()

hasCollector(string  $name) : boolean

Checks if a data collector has been added

Parameters

string $name

Returns

boolean

getCollector()

getCollector(string  $name) : \DebugBar\DataCollector\DataCollectorInterface

Returns a data collector

Parameters

string $name

Throws

\DebugBar\DebugBarException

Returns

\DebugBar\DataCollector\DataCollectorInterface

getCollectors()

getCollectors() : \DebugBar\array[DataCollectorInterface]

Returns an array of all data collectors

Returns

\DebugBar\array[DataCollectorInterface]

setRequestIdGenerator()

setRequestIdGenerator(\DebugBar\RequestIdGeneratorInterface  $generator) : $this

Sets the request id generator

Parameters

\DebugBar\RequestIdGeneratorInterface $generator

Returns

$this

getCurrentRequestId()

getCurrentRequestId() : string

Returns the id of the current request

Returns

string

setStorage()

setStorage(\DebugBar\Storage\StorageInterface  $storage = null) : $this

Sets the storage backend to use to store the collected data

Parameters

\DebugBar\Storage\StorageInterface $storage

Returns

$this

isDataPersisted()

isDataPersisted() : boolean

Checks if the data will be persisted

Returns

boolean

setHttpDriver()

setHttpDriver(\DebugBar\HttpDriverInterface  $driver) : $this

Sets the HTTP driver

Parameters

\DebugBar\HttpDriverInterface $driver

Returns

$this

getHttpDriver()

getHttpDriver() : \DebugBar\HttpDriverInterface

Returns the HTTP driver

If no http driver where defined, a PhpHttpDriver is automatically created

Returns

\DebugBar\HttpDriverInterface

collect()

collect() : array

Collects the data from the collectors

Returns

array

getData()

getData() : array

Returns collected data

Will collect the data if none have been collected yet

Returns

array

getDataAsHeaders()

getDataAsHeaders(string  $headerName = 'phpdebugbar', integer  $maxHeaderLength = 4096,   $maxTotalHeaderLength = 250000) : array

Returns an array of HTTP headers containing the data

Parameters

string $headerName
integer $maxHeaderLength
$maxTotalHeaderLength

Returns

array

sendDataInHeaders()

sendDataInHeaders(boolean  $useOpenHandler = null, string  $headerName = 'phpdebugbar', integer  $maxHeaderLength = 4096) : $this

Sends the data through the HTTP headers

Parameters

boolean $useOpenHandler
string $headerName
integer $maxHeaderLength

Returns

$this

stackData()

stackData() 

Stacks the data in the session for later rendering

hasStackedData()

hasStackedData() : boolean

Checks if there is stacked data in the session

Returns

boolean

getStackedData()

getStackedData(boolean  $delete = true) : array

Returns the data stacked in the session

Parameters

boolean $delete

Whether to delete the data in the session

Returns

array

setStackDataSessionNamespace()

setStackDataSessionNamespace(string  $ns) : $this

Sets the key to use in the $_SESSION array

Parameters

string $ns

Returns

$this

getStackDataSessionNamespace()

getStackDataSessionNamespace() : string

Returns the key used in the $_SESSION array

Returns

string

setStackAlwaysUseSessionStorage()

setStackAlwaysUseSessionStorage(boolean  $enabled = true) : $this

Sets whether to only use the session to store stacked data even if a storage is enabled

Parameters

boolean $enabled

Returns

$this

isStackAlwaysUseSessionStorage()

isStackAlwaysUseSessionStorage() : boolean

Checks if the session is always used to store stacked data even if a storage is enabled

Returns

boolean

getJavascriptRenderer()

getJavascriptRenderer(string  $baseUrl = null, string  $basePath = null) : \DebugBar\JavascriptRenderer

Returns a JavascriptRenderer for this instance

Parameters

string $baseUrl
string $basePath

Returns

\DebugBar\JavascriptRenderer

offsetSet()

offsetSet(  $key,   $value) 

Parameters

$key
$value

offsetGet()

offsetGet(  $key) 

Parameters

$key

offsetExists()

offsetExists(  $key) 

Parameters

$key

offsetUnset()

offsetUnset(  $key) 

Parameters

$key

__construct()

__construct() 

initStackSession()

initStackSession() : \DebugBar\HttpDriverInterface

Initializes the session for stacked data

Throws

\DebugBar\DebugBarException

Returns

\DebugBar\HttpDriverInterface