\BehaviorFB

Summary

Methods
Properties
Constants
setEnabled()
getEnabled()
setObjectFilter()
setOptions()
getOptions()
send()
group()
groupEnd()
log()
info()
warn()
error()
dump()
trace()
table()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

setEnabled()

setEnabled(boolean  $Enabled) : void

Enable and disable logging to Firebug

Parameters

boolean $Enabled

TRUE to enable, FALSE to disable

getEnabled()

getEnabled() : boolean

Check if logging is enabled

Returns

boolean —

TRUE if enabled

setObjectFilter()

setObjectFilter(string  $Class, array  $Filter) : void

Specify a filter to be used when encoding an object

Filters are used to exclude object members.

Parameters

string $Class

The class name of the object

array $Filter

An array or members to exclude

setOptions()

setOptions(array  $Options) : void

Set some options for the library

Parameters

array $Options

The options to be set

getOptions()

getOptions() : array

Get options for the library

Returns

array —

The options

send()

send() : true

Log object to firebug

Throws

\Behavior\Exception

Returns

true

group()

group(string  $Name, array  $Options = null) : true

Start a group for following messages

Options: Collapsed: [true|false] Color: [#RRGGBB|ColorName]

Parameters

string $Name
array $Options

OPTIONAL Instructions on how to log the group

Returns

true

groupEnd()

groupEnd() : true

Ends a group you have started before

Throws

\Behavior\Exception

Returns

true

log()

log(\Behavior\mixes  $Object, string  $Label = null) : true

Log object with label to firebug console

Parameters

\Behavior\mixes $Object
string $Label

Throws

\Behavior\Exception

Returns

true

info()

info(\Behavior\mixes  $Object, string  $Label = null) : true

Log object with label to firebug console

Parameters

\Behavior\mixes $Object
string $Label

Throws

\Behavior\Exception

Returns

true

warn()

warn(\Behavior\mixes  $Object, string  $Label = null) : true

Log object with label to firebug console

Parameters

\Behavior\mixes $Object
string $Label

Throws

\Behavior\Exception

Returns

true

error()

error(\Behavior\mixes  $Object, string  $Label = null) : true

Log object with label to firebug console

Parameters

\Behavior\mixes $Object
string $Label

Throws

\Behavior\Exception

Returns

true

dump()

dump(string  $Key, mixed  $Variable) : true

Dumps key and variable to firebug server panel

Parameters

string $Key
mixed $Variable

Throws

\Behavior\Exception

Returns

true

trace()

trace(string  $Label) : true

Log a trace in the firebug console

Parameters

string $Label

Throws

\Behavior\Exception

Returns

true

table()

table(string  $Label, string  $Table) : true

Log a table in the firebug console

Parameters

string $Label
string $Table

Throws

\Behavior\Exception

Returns

true