|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct () | |
| __sleep () | |
| setEnabled ($Enabled) | |
| getEnabled () | |
| setObjectFilter ($Class, $Filter) | |
| setOptions ($Options) | |
| registerErrorHandler () | |
| errorHandler ($errno, $errstr, $errfile, $errline, $errcontext) | |
| registerExceptionHandler () | |
| exceptionHandler ($Exception) | |
| setProcessorUrl ($URL) | |
| setRendererUrl ($URL) | |
| group ($Name) | |
| groupEnd () | |
| log ($Object, $Label=null) | |
| info ($Object, $Label=null) | |
| warn ($Object, $Label=null) | |
| error ($Object, $Label=null) | |
| dump ($Key, $Variable) | |
| trace ($Label) | |
| table ($Label, $Table) | |
| detectClientExtension () | |
| fb ($Object) | |
Static Public Member Functions | |
| static | getInstance ($AutoCreate=false) |
| static | init () |
Data Fields | |
| const | VERSION = '0.2.0' |
| const | LOG = 'LOG' |
| const | INFO = 'INFO' |
| const | WARN = 'WARN' |
| const | ERROR = 'ERROR' |
| const | DUMP = 'DUMP' |
| const | TRACE = 'TRACE' |
| const | EXCEPTION = 'EXCEPTION' |
| const | TABLE = 'TABLE' |
| const | GROUP_START = 'GROUP_START' |
| const | GROUP_END = 'GROUP_END' |
Protected Member Functions | |
| _standardizePath ($Path) | |
| _escapeTrace ($Trace) | |
| _escapeTraceFile ($File) | |
| setHeader ($Name, $Value) | |
| getUserAgent () | |
| newException ($Message) | |
| jsonEncode ($Object, $skipObjectEncode=false) | |
| encodeTable ($Table) | |
| encodeObject ($Object, $ObjectDepth=1, $ArrayDepth=1) | |
Static Protected Member Functions | |
| static | is_utf8 ($str) |
Protected Attributes | |
| $messageIndex = 1 | |
| $options = array() | |
| $objectFilters = array() | |
| $objectStack = array() | |
| $enabled = true | |
Static Protected Attributes | |
| static | $instance = null |
Definition at line 58 of file FirePHP.php.
| __construct | ( | ) |
The object constructor
Definition at line 192 of file FirePHP.php.
| __sleep | ( | ) |
When the object gets serialized only include specific object members.
Definition at line 204 of file FirePHP.php.
| _escapeTrace | ( | $ | Trace | ) | [protected] |
Escape trace path for windows systems
| array | $Trace |
Definition at line 748 of file FirePHP.php.


| _escapeTraceFile | ( | $ | File | ) | [protected] |
Escape file information of trace for windows systems
| string | $File |
Definition at line 767 of file FirePHP.php.

| _standardizePath | ( | $ | Path | ) | [protected] |
Standardizes path for windows systems.
| string | $Path |
Definition at line 738 of file FirePHP.php.

Check if FirePHP is installed on client
Definition at line 472 of file FirePHP.php.


| dump | ( | $ | Key, |
| $ | Variable | ||
| ) |
Dumps key and variable to firebug server panel
| string | $Key | |
| mixed | $Variable |
| Exception |
Definition at line 438 of file FirePHP.php.

| encodeObject | ( | $ | Object, |
| $ | ObjectDepth = 1, |
||
| $ | ArrayDepth = 1 |
||
| ) | [protected] |
Encodes an object including members with protected and private visibility
| Object | $Object | The object to be encoded |
| int | $Depth | The current traversal depth |
Definition at line 858 of file FirePHP.php.

| encodeTable | ( | $ | Table | ) | [protected] |
Encodes a table by encoding each row and column with encodeObject()
| array | $Table | The table to be encoded |
Definition at line 838 of file FirePHP.php.


| error | ( | $ | Object, |
| $ | Label = null |
||
| ) |
Log object with label to firebug console
| mixes | $Object | |
| string | $Label |
| Exception |
Definition at line 425 of file FirePHP.php.

| errorHandler | ( | $ | errno, |
| $ | errstr, | ||
| $ | errfile, | ||
| $ | errline, | ||
| $ | errcontext | ||
| ) |
FirePHP's error handler
Throws exception for each php error that will occur.
| int | $errno | |
| string | $errstr | |
| string | $errfile | |
| int | $errline | |
| array | $errcontext |
Definition at line 304 of file FirePHP.php.
| exceptionHandler | ( | $ | Exception | ) |
FirePHP's exception handler
Logs all exceptions to your firebug console and then stops the script.
| Exception | $Exception |
| Exception |
Definition at line 332 of file FirePHP.php.

| fb | ( | $ | Object | ) |
Log varible to Firebug
| mixed | $Object | The variable to be logged |
| Exception |
Definition at line 489 of file FirePHP.php.


| getEnabled | ( | ) |
Check if logging is enabled
Definition at line 245 of file FirePHP.php.
| static getInstance | ( | $ | AutoCreate = false | ) | [static] |
Gets singleton instance of FirePHP
| boolean | $AutoCreate |
Definition at line 214 of file FirePHP.php.

| getUserAgent | ( | ) | [protected] |
Get user agent
Definition at line 794 of file FirePHP.php.

| group | ( | $ | Name | ) |
Start a group for following messages
| string | $Name |
| Exception |
Definition at line 363 of file FirePHP.php.

| groupEnd | ( | ) |
Ends a group you have started before
| Exception |
Definition at line 373 of file FirePHP.php.

| info | ( | $ | Object, |
| $ | Label = null |
||
| ) |
Log object with label to firebug console
| mixes | $Object | |
| string | $Label |
| Exception |
Definition at line 399 of file FirePHP.php.

| static init | ( | ) | [static] |
Creates FirePHP object and stores it for singleton access
Definition at line 226 of file FirePHP.php.

| static is_utf8 | ( | $ | str | ) | [static, protected] |
Returns true if $string is valid UTF-8 and false otherwise.
| mixed | $str | String to be tested |
Definition at line 991 of file FirePHP.php.
| jsonEncode | ( | $ | Object, |
| $ | skipObjectEncode = false |
||
| ) | [protected] |
Encode an object into a JSON string
Uses PHP's jeson_encode() if available
| object | $Object | The object to be encoded |
Definition at line 817 of file FirePHP.php.


| log | ( | $ | Object, |
| $ | Label = null |
||
| ) |
Log object with label to firebug console
| mixes | $Object | |
| string | $Label |
| Exception |
Definition at line 386 of file FirePHP.php.

| newException | ( | $ | Message | ) | [protected] |
Returns a new exception
| string | $Message |
Definition at line 805 of file FirePHP.php.

Register FirePHP as your error handler
Will throw exceptions for each php error.
Definition at line 283 of file FirePHP.php.
Register FirePHP as your exception handler
Definition at line 319 of file FirePHP.php.
| setEnabled | ( | $ | Enabled | ) |
Enable and disable logging to Firebug
| boolean | $Enabled | TRUE to enable, FALSE to disable |
Definition at line 236 of file FirePHP.php.
| setHeader | ( | $ | Name, |
| $ | Value | ||
| ) | [protected] |
Send header
| string | $Name | |
| string_type | $Value |
Definition at line 785 of file FirePHP.php.

| 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 or members to exclude |
Definition at line 258 of file FirePHP.php.
| setOptions | ( | $ | Options | ) |
Set some options for the library
Options:
| array | $Options | The options to be set |
Definition at line 274 of file FirePHP.php.
| setProcessorUrl | ( | $ | URL | ) |
Set custom processor url for FirePHP
| string | $URL |
Definition at line 341 of file FirePHP.php.

| setRendererUrl | ( | $ | URL | ) |
Set custom renderer url for FirePHP
| string | $URL |
Definition at line 351 of file FirePHP.php.

| table | ( | $ | Label, |
| $ | Table | ||
| ) |
Log a table in the firebug console
| string | $Label | |
| string | $Table |
| Exception |
Definition at line 463 of file FirePHP.php.

| trace | ( | $ | Label | ) |
Log a trace in the firebug console
| string | $Label |
| Exception |
Definition at line 450 of file FirePHP.php.

| warn | ( | $ | Object, |
| $ | Label = null |
||
| ) |
Log object with label to firebug console
| mixes | $Object | |
| string | $Label |
| Exception |
Definition at line 412 of file FirePHP.php.

$enabled = true [protected] |
Definition at line 187 of file FirePHP.php.
$instance = null [static, protected] |
Definition at line 152 of file FirePHP.php.
$messageIndex = 1 [protected] |
Definition at line 159 of file FirePHP.php.
$objectFilters = array() [protected] |
Definition at line 173 of file FirePHP.php.
$objectStack = array() [protected] |
Definition at line 180 of file FirePHP.php.
$options = array() [protected] |
Definition at line 166 of file FirePHP.php.
Definition at line 108 of file FirePHP.php.
Definition at line 101 of file FirePHP.php.
Definition at line 124 of file FirePHP.php.
Definition at line 145 of file FirePHP.php.
| const GROUP_START = 'GROUP_START' |
Definition at line 138 of file FirePHP.php.
Definition at line 83 of file FirePHP.php.
Definition at line 74 of file FirePHP.php.
Definition at line 131 of file FirePHP.php.
Definition at line 115 of file FirePHP.php.
| const VERSION = '0.2.0' |
Definition at line 65 of file FirePHP.php.
Definition at line 92 of file FirePHP.php.