static returns addToBuffer(
string
$reference, mixed
$string, [string
$statement = null]
)
|
|
Attaches a message to the end of the buffer array to add data based on a reference
Parameters:
string |
$reference: |
a reference to look for ("$statement") |
mixed |
$string: |
the message to show |
string |
$statement: |
a new statement if required |
API Tags:
Return: | true if the given reference is found, false otherwise |
See: | add_to_log() |
Access: | public |
Information Tags:
static void bufferLog(
mixed
$string, [mixed
$statement = null], [string
$category = null]
)
|
|
Writes data to the messages panel
Parameters:
mixed |
$string: |
the string to pass |
mixed |
$statement: |
some statement if required |
string |
$category: |
a category for the messages panel |
API Tags:
Information Tags:
static void bufferSql(
mixed
$string, [mixed
$statement = null], [string
$category = null]
)
|
|
Writes data to the sql panel
Parameters:
mixed |
$string: |
the string to pass |
mixed |
$statement: |
some statement if required |
string |
$category: |
a category for the sql panel |
API Tags:
Information Tags:
static returns checkReferer(
)
|
|
Checks if the debug "url_key" and "url_pass" are set on the referer url
API Tags:
Return: | true if "url_key" and "url_pass" are in the referer url, otherwise false |
Access: | public |
static void errorHandler(
string
$errno, string
$errstr, string
$errfile, string
$errline
)
|
|
Handles php errors
Parameters:
string |
$errno: |
error number (php standards) |
string |
$errstr: |
error string |
string |
$errfile: |
error file |
string |
$errline: |
error line |
API Tags:
static void exceptionHandler(
object
$exception
)
|
|
Exception handler, catches exceptions that are not in a try/catch block
Parameters:
object |
$exception: |
the exception object |
API Tags:
static returns highlightFile(
string
$file, [string
$line = null]
)
|
|
File highlighter that opens a popup window inspect source code
Parameters:
string |
$file: |
the full path for the file |
string |
$line: |
the line to be highlighted |
API Tags:
Return: | the html output of highlight_file() |
Access: | public |
Information Tags:
static void load(
[array
$options = null]
)
|
|
Loads the debug interface and/or the console class if requested
Parameters:
API Tags:
Information Tags:
static void processBuffer(
)
|
|
Processes the buffer to show the interface and/or the console messages
API Tags:
static void setErrorHandler(
[string
$dieOnFatal = true]
)
|
|
Sets the error handler to be the debug class. good for production with "$dieOnFatal" set to false
Parameters:
string |
$dieOnFatal: |
die if fatal error occurs |
API Tags:
Information Tags:
static resturns stopTimer(
[string
$reference = null], [string|numeric
$precision = 1]
)
|
|
Monitors the execution of php code, or sql queries based on a reference
Parameters:
string |
$reference: |
a reference to look for ("$statement") |
string|numeric |
$precision: |
sec/ms |
API Tags:
Return: | true if a given reference is found, otherwise false |
See: | stop_timer() |
Access: | public |
Information Tags:
static void watch(
string
$variableName
)
|
|
Watches a variable that is in a declare(ticks=n); code block, for changes
Parameters:
string |
$variableName: |
the name of the variable to watch |
API Tags:
Information Tags:
static void watchCallback(
)
|
|
Callback function that checks if a given variable has changed
API Tags:
static void _buildBuffer(
string
$type, mixed
$string, [mixed
$statement = null], [string
$category = null]
)
|
|
Builds the buffer
Parameters:
string |
$type: |
log/sql |
mixed |
$string: |
the string to pass |
mixed |
$statement: |
some statement preceding the string |
string |
$category: |
a category for the message |
API Tags:
static returns _buildHtmlTable(
string
$type
)
|
|
Builds the html log and sql tables
Parameters:
API Tags:
Return: | the html table data |
Access: | protected |
static void _buildInnerVars(
string
$panelId, string
$linkTitle, string
$array
)
|
|
Builds the inner vars div
Parameters:
string |
$panelId: |
the id of the panel to show/hide |
string |
$linkTitle: |
the title of the link |
string |
$array: |
array of parameters |
API Tags:
static returns _buildInterface(
)
|
|
Builds the debug interface
API Tags:
Return: | the html with interface |
Access: | protected |
static returns _buildMenu(
)
|
|
Builds the debug menu
API Tags:
Return: | the html menu compressed |
Access: | protected |
static void _buildMsgPanel(
$type
$type, $panelId
$panelId
)
|
|
Builds the log/sql panel
Parameters:
$type |
$type: |
log or sql |
$panelId |
$panelId: |
some id for the panel |
API Tags:
static void _buildPhpInfo(
)
|
|
Formats phpinfo() function
API Tags:
static void _buildTimerPanel(
)
|
|
Builds the timer panel
API Tags:
static void _buildTraceLink(
string
$file, [string
$line = null]
)
|
|
Builds the link for the code highlighter popup
Parameters:
string |
$file: |
the full path to the file |
string |
$line: |
the line to be highlighted |
API Tags:
static void _buildTraceTree(
mixed
$var, [string
$className = null], [string
$styleColor = null]
)
|
|
Builds the tree for the links in the vars & config panel
Parameters:
mixed |
$var: |
the variable |
string |
$className: |
a css class |
string |
$styleColor: |
the color for |
API Tags:
static void _buildVarsPanel(
)
|
|
Builds the vars panel
API Tags:
static void _buildW3cPanel(
)
|
|
Builds the W3C panel
API Tags:
static void _checkAccess(
[string|array
$allowedIps = null]
)
|
|
Checks if a given ip has access
Parameters:
string|array |
$allowedIps: |
the ip's that are allowed |
API Tags:
static void _cleanBuffer(
string
$var
)
|
|
Removes html entities from the buffer
Parameters:
API Tags:
static void _compressHtml(
$html
)
|
|
Compresses the html before render
Parameters:
API Tags:
static void _debugConsole(
)
|
|
Sends the buffer to the PhpConsole class
API Tags:
static returns _debugTrace(
[
$depth = NULL]
)
|
|
Trace php as best as we can
Parameters:
API Tags:
Return: | the trace without the methods in the _excludeMethods property |
Access: | protected |
static void _disablePanels(
)
|
|
Controls which panels will be shown with $_GET variable "hidepanels"
API Tags:
static returns _doDump(
&$var, [mixed
$varName = NULL], [string
$indent = NULL], [string
$reference = NULL], [
$depth = 0], mixed
$var
)
|
|
Custom dump to properly format a given variable and make it more friendly to read
Parameters:
mixed |
$var: |
the string to pass |
mixed |
$varName: |
some statement preceding the variable |
string |
$indent: |
uses "|" as indents by default |
string |
$reference: |
a reference to prevent recursion |
|
&$var: |
|
|
$depth: |
|
API Tags:
Return: | the html output with the variable |
Access: | protected |
static returns _findReference(
string
$reference, [numeric
$type = 1]
)
|
|
Finds a value in the buffer based on a reference (the "$statement")
Parameters:
string |
$reference: |
the reference to look for |
numeric |
$type: |
"1" to time execution, "2" to attach data to a message |
API Tags:
Return: | the array if the given reference is found in the buffer |
Access: | protected |
static returns _findWatchVar(
string
$variableName
)
|
|
Retrieves the variable to watch from the "$GLOBALS"
Parameters:
string |
$variableName: |
the name of the variable to find |
API Tags:
Return: | the watched variable if found, otherwise null |
Access: | protected |
static returns _formatVar(
$var, mixed
$string
)
|
|
Evaluates the type of variable for output
Parameters:
mixed |
$string: |
the variable to pass |
|
$var: |
|
API Tags:
Return: | the html output with the variable content |
Access: | protected |
static void _includeCss(
)
|
|
Includes the css for the interface
API Tags:
static void _includeJs(
)
|
|
Includes the javascript for the interface
API Tags:
static void _lastError(
)
|
|
Gets the fatal error on shutdown
API Tags:
static returns _menuLinks(
string
$Id, string
$title, string
$text
)
|
|
Builds the menu links
Parameters:
string |
$Id: |
the panel id |
string |
$title: |
the panel title |
string |
$text: |
the text for the link |
API Tags:
Return: | the html anchor tag |
Access: | protected |
static returns _msgType(
[string|numeric
$msg = NULL]
)
|
|
Checks message types
Parameters:
string|numeric |
$msg: |
php standards |
API Tags:
Return: | the message type as a readable string |
Access: | protected |
static void _phpInfoArray(
)
|
|
Formats phpinfo() into an array
API Tags:
static void _setSessionVars(
)
|
|
Sets session vars to control which panels will be shown
API Tags:
static returns _sortBuffer(
)
|
|
Sorts the buffer
API Tags:
Return: | the sorted buffer array |
Access: | protected |