Zend Framework
1.12
|
Public Member Functions | |
setEnabled ($enabled) | |
Enable or disable sending of messages to user-agent. | |
getEnabled () | |
Determine if logging to user-agent is enabled. | |
setOption ($key, $value) | |
Set a single option. | |
getOption ($key) | |
Retrieve a single option. | |
getOptions () | |
Retrieve all options. | |
setObjectFilter ($class, $filter) | |
Specify a filter to be used when encoding an object. | |
getUri () | |
Get the unique indentifier for this plugin. | |
flushMessages ($protocolUri) | |
Flush any buffered data. | |
Static Public Member Functions | |
static | init ($class=null) |
Create singleton instance. | |
static | getInstance ($skipCreate=false) |
Get or create singleton instance. | |
static | destroyInstance () |
Destroys the singleton instance. | |
static | group ($title, $options=array()) |
Starts a group in the Firebug Console. | |
static | groupEnd () |
Ends a group in the Firebug Console. | |
static | send ($var, $label=null, $style=null, $options=array()) |
Logs variables to the Firebug Console via HTTP response headers and the FirePHP Firefox Extension. | |
Public Attributes | |
const | LOG = 'LOG' |
Plain log style. | |
const | INFO = 'INFO' |
Information style. | |
const | WARN = 'WARN' |
Warning style. | |
const | ERROR = 'ERROR' |
Error style that increments Firebug's error counter. | |
const | TRACE = 'TRACE' |
Trace style showing message and expandable full stack trace. | |
const | EXCEPTION = 'EXCEPTION' |
Exception style showing message and expandable full stack trace. | |
const | TABLE = 'TABLE' |
Table style showing summary line and expandable table. | |
const | DUMP = 'DUMP' |
Dump variable to Server panel in Firebug Request Inspector. | |
const | GROUP_START = 'GROUP_START' |
Start a group in the Firebug Console. | |
const | GROUP_END = 'GROUP_END' |
End a group in the Firebug Console. | |
const | PLUGIN_URI = 'http://meta.firephp.org/Wildfire/Plugin/ZendFramework/FirePHP/1.6.2' |
The plugin URI for this plugin. | |
const | PROTOCOL_URI = Zend_Wildfire_Protocol_JsonStream::PROTOCOL_URI |
The protocol URI for this plugin. | |
const | STRUCTURE_URI_DUMP = 'http://meta.firephp.org/Wildfire/Structure/FirePHP/Dump/0.1' |
The structure URI for the Dump structure. | |
const | STRUCTURE_URI_FIREBUGCONSOLE = 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1' |
The structure URI for the Firebug Console structure. | |
Protected Member Functions | |
__construct () | |
Constructor. | |
_getStackTrace ($options) | |
Gets a stack trace. | |
_recordMessage ($structure, $data, $skipEncode=false) | |
Record a message with the given data in the given structure. | |
_encodeTable ($table) | |
Encodes a table by encoding each row and column with _encodeObject() | |
_encodeTrace ($trace) | |
Encodes a trace by encoding all "args" with _encodeObject() | |
_encodeObject ($object, $objectDepth=1, $arrayDepth=1) | |
Encode an object by generating an array containing all object members. | |
Protected Attributes | |
$_enabled = true | |
$_channel = null | |
$_messages = array() | |
$_options | |
$_objectFilters = array() | |
$_objectStack = array() | |
Static Protected Attributes | |
static | $_instance = null |
|
protected |
Constructor.
|
protected |
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.
mixed | $object | The object/array/value to be encoded |
|
protected |
Encodes a table by encoding each row and column with _encodeObject()
array | $Table | The table to be encoded |
|
protected |
Encodes a trace by encoding all "args" with _encodeObject()
array | $Trace | The trace to be encoded |
|
protected |
Gets a stack trace.
array | $options | Options to change how the stack trace is returned |
|
protected |
Record a message with the given data in the given structure.
string | $structure | The structure to be used for the data |
array | $data | The data to be recorded |
boolean | $skipEncode | TRUE if variable encoding should be skipped |
Zend_Wildfire_Exception |
|
static |
Destroys the singleton instance.
Primarily used for testing.
flushMessages | ( | $protocolUri | ) |
Flush any buffered data.
string | $protocolUri | The URI of the protocol that should be flushed to |
Implements Zend_Wildfire_Plugin_Interface.
getEnabled | ( | ) |
Determine if logging to user-agent is enabled.
|
static |
Get or create singleton instance.
bool | $skipCreate | True if an instance should not be created |
getOption | ( | $key | ) |
Retrieve a single option.
string | $key | The name of the option |
getOptions | ( | ) |
Retrieve all options.
getUri | ( | ) |
Get the unique indentifier for this plugin.
Implements Zend_Wildfire_Plugin_Interface.
|
static |
Starts a group in the Firebug Console.
string | $title | The title of the group |
array | $options | OPTIONAL Setting 'Collapsed' to true will initialize group collapsed instead of expanded |
|
static |
Ends a group in the Firebug Console.
|
static |
Create singleton instance.
string | $class | OPTIONAL Subclass of Zend_Wildfire_Plugin_FirePhp |
Zend_Wildfire_Exception |
|
static |
Logs variables to the Firebug Console via HTTP response headers and the FirePHP Firefox Extension.
mixed | $var | The variable to log. |
string | $label | OPTIONAL Label to prepend to the log event. |
string | $style | OPTIONAL Style of the log event. |
array | $options | OPTIONAL Options to change how messages are processed and sent |
Zend_Wildfire_Exception |
setEnabled | ( | $enabled | ) |
Enable or disable sending of messages to user-agent.
If disabled all headers to be sent will be removed.
boolean | $enabled | Set to TRUE to enable sending of messages. |
setObjectFilter | ( | $class, | |
$filter | |||
) |
Specify a filter to be used when encoding an object.
Filters are used to exclude object members.
string | $Class | The class name of the object |
array | $Filter | An array of members to exclude |
setOption | ( | $key, | |
$value | |||
) |
Set a single option.
string | $key | The name of the option |
mixed | $value | The value of the option |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
const DUMP = 'DUMP' |
Dump variable to Server panel in Firebug Request Inspector.
const ERROR = 'ERROR' |
Error style that increments Firebug's error counter.
const EXCEPTION = 'EXCEPTION' |
Exception style showing message and expandable full stack trace.
Also increments Firebug's error counter.
const GROUP_END = 'GROUP_END' |
End a group in the Firebug Console.
const GROUP_START = 'GROUP_START' |
Start a group in the Firebug Console.
const INFO = 'INFO' |
Information style.
const LOG = 'LOG' |
Plain log style.
const PLUGIN_URI = 'http://meta.firephp.org/Wildfire/Plugin/ZendFramework/FirePHP/1.6.2' |
The plugin URI for this plugin.
const PROTOCOL_URI = Zend_Wildfire_Protocol_JsonStream::PROTOCOL_URI |
The protocol URI for this plugin.
const STRUCTURE_URI_DUMP = 'http://meta.firephp.org/Wildfire/Structure/FirePHP/Dump/0.1' |
The structure URI for the Dump structure.
const STRUCTURE_URI_FIREBUGCONSOLE = 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1' |
The structure URI for the Firebug Console structure.
const TABLE = 'TABLE' |
Table style showing summary line and expandable table.
const TRACE = 'TRACE' |
Trace style showing message and expandable full stack trace.
const WARN = 'WARN' |
Warning style.