Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Primary class for communicating with the FirePHP Firefox Extension.
LOG = 'LOG'
Plain log style.
INFO = 'INFO'
Information style.
WARN = 'WARN'
Warning style.
ERROR = 'ERROR'
Error style that increments Firebug's error counter.
TRACE = 'TRACE'
Trace style showing message and expandable full stack trace.
EXCEPTION = 'EXCEPTION'
Exception style showing message and expandable full stack trace.
Also increments Firebug's error counter.
TABLE = 'TABLE'
Table style showing summary line and expandable table
DUMP = 'DUMP'
Dump variable to Server panel in Firebug Request Inspector
GROUP_START = 'GROUP_START'
Start a group in the Firebug Console
GROUP_END = 'GROUP_END'
End a group in the Firebug Console
PLUGIN_URI = 'http://meta.firephp.org/Wildfire/Plugin/ZendFramework/FirePHP/1.6.2'
The plugin URI for this plugin
PROTOCOL_URI = 'Zend_Wildfire_Protocol_JsonStream'
The protocol URI for this plugin
STRUCTURE_URI_DUMP = 'http://meta.firephp.org/Wildfire/Structure/FirePHP/Dump/0.1'
The structure URI for the Dump structure
STRUCTURE_URI_FIREBUGCONSOLE = 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1'
The structure URI for the Firebug Console structure
Zend_Wildfire_Channel_Interface $_channel = 'null'
The channel via which to send the encoded messages.
boolean $_enabled = 'true'
Flag indicating whether FirePHP should send messages to the user-agent.
Zend_Wildfire_Plugin_FirePhp $_instance = 'null'
Singleton instance
array $_messages = 'array'
Messages that are buffered to be sent when protocol flushes
array $_objectFilters = 'array'
Filters used to exclude object members when encoding
array $_objectStack = 'array'
A stack of objects used during encoding to detect recursion
array $_options = 'array'
Options for the object
__construct(
)
:
void
Constructor
_encodeObject(
mixed $object, $objectDepth
=
1, $arrayDepth
=
1
)
:
array
Encode an object by generating an array containing all object members.
All private and protected members are included. Some meta info about the object class is added.
_encodeTable(
$table
)
:
array
Encodes a table by encoding each row and column with _encodeObject()
_encodeTrace(
$trace
)
:
array
Encodes a trace by encoding all "args" with _encodeObject()
_getStackTrace(
array $options
)
:
array
Gets a stack trace
_recordMessage(
string $structure, array $data, boolean $skipEncode
=
false
)
:
boolean
Record a message with the given data in the given structure
destroyInstance(
)
:
void
Destroys the singleton instance
Primarily used for testing.
flushMessages(
string $protocolUri
)
:
void
Flush any buffered data.
getEnabled(
)
:
boolean
Determine if logging to user-agent is enabled.
getInstance(
$skipCreate $skipCreate
=
false
)
:
Zend_Wildfire_Plugin_FirePhp
Get or create singleton instance
getOption(
string $key
)
:
mixed
Retrieve a single option
getOptions(
)
:
array
Retrieve all options
getUri(
)
:
string
Get the unique indentifier for this plugin.
group(
string $title
)
:
TRUE
Starts a group in the Firebug Console
groupEnd(
)
:
TRUE
Ends a group in the Firebug Console
init(
string $class
=
null
)
:
Zend_Wildfire_Plugin_FirePhp
Create singleton instance.
send(
mixed $var, string $label
=
null, string $style
=
null, array $options
=
array
)
:
boolean
Logs variables to the Firebug Console via HTTP response headers and the FirePHP Firefox Extension.
setEnabled(
boolean $enabled
)
:
boolean
Enable or disable sending of messages to user-agent.
If disabled all headers to be sent will be removed.
setObjectFilter(
$class, $filter
)
:
void
Specify a filter to be used when encoding an object
Filters are used to exclude object members.
setOption(
string $key, mixed $value
)
:
mixed
Set a single option