Class: atkDebugger
Source Location: /utils/class.atkdebugger.inc
Class atkDebugger
Method Summary
| static
bool
|
addQuery() |
Add a query string to the debugger |
| static
string
|
elapsed() |
Gets the elapsed time |
| string |
urlParams() |
Convert a params array to a querystring to add to the url |
| bool |
_addQuery() |
Add a query string to the debugger |
Methods
static bool addQuery(
string
$query, [
$isSystemQuery = false], boolean
$system
)
|
|
Add a query string to the debugger
Parameters:
|
string |
$query: |
|
|
boolean |
$system: |
is system query? (e.g. for retrieving metadata, warnings, setting locks etc.) |
|
|
$isSystemQuery: |
|
API Tags:
| Return: | Indication if query is added |
| Access: | public |
static bool addStatement(
string
$txt
)
|
|
Add a debug statement
Parameters:
|
string |
$txt: |
The debug statement |
API Tags:
| Return: | Indication if statement is added |
| Access: | public |
Gets the elapsed time
API Tags:
| Return: | The elapsed time |
| Access: | public |
Get an instance of this class
API Tags:
| Return: | Instance of atkDebugger |
| Access: | public |
static int getMicroTime(
)
|
|
Gets the microtime
API Tags:
| Return: | the microtime |
| Access: | public |
atkDebugger __construct(
)
|
|
Constructor
API Tags:
string arrToTable(
array
$result, [bool
$full = true], [int
$id = ""]
)
|
|
Convert an array to a table
Parameters:
|
array |
$result: |
The array to convert |
|
bool |
$full: |
All results? |
|
int |
$id: |
|
API Tags:
| Return: | HTML table |
| Access: | public |
string consoleControls(
)
|
|
Get the HTML code for the console controls
API Tags:
| Return: | The HTML code |
| Access: | public |
string consoleLink(
string
$text, [string
$action = ""], [array
$params = array()], [bool
$popup = false], [int
$stackId = NULL]
)
|
|
Create the console link
Parameters:
|
string |
$text: |
The name of the link |
|
string |
$action: |
The action |
|
array |
$params: |
Array with parameters to add to the url |
|
bool |
$popup: |
IS this a popup link? |
|
int |
$stackId: |
The stack id |
API Tags:
| Return: | HTML code with the console link |
| Access: | public |
array &getDebuggerData(
[bool
$clean = false], [int
$stackId = NULL]
)
|
|
Get debugger data
Parameters:
|
bool |
$clean: |
|
|
int |
$stackId: |
|
API Tags:
| Return: | Array with data |
| Access: | public |
string highlightQuery(
string
$query
)
|
|
Highlight a query
Parameters:
|
string |
$query: |
The query to highlight |
API Tags:
| Return: | The highlighted query |
| Access: | public |
string queryDetails(
array
$queries, int
$id
)
|
|
Get details for the query
Parameters:
|
array |
$queries: |
Array with queries |
|
int |
$id: |
The index in the queries array we want the details from |
API Tags:
| Return: | The query details |
| Access: | public |
Render the console
API Tags:
| Return: | The HTML code |
| Access: | public |
string renderDebugAndErrorMessages(
)
|
|
Renders the debug and error messages to a nice HTML string.
API Tags:
| Return: | html string |
| Access: | public |
string renderDebugBlock(
bool
$expanded
)
|
|
Render debug block for the current debug information.
Parameters:
|
bool |
$expanded: |
Display debugblock expanded? |
API Tags:
| Return: | debug block string |
| Access: | public |
Information Tags:
string renderPlainErrorMessages(
)
|
|
Renders error messages for the user.
API Tags:
| Return: | error messages string |
| Access: | public |
Information Tags:
string renderQueryList(
array
$queries
)
|
|
Render query list
Parameters:
API Tags:
| Return: | HTML code with the query list |
| Access: | public |
void renderRedirectLink(
)
|
|
Renders the redirect link if applicable.
API Tags:
string renderStatementList(
array
$statements
)
|
|
Render statement list
Parameters:
API Tags:
| Return: | HTML code with the statement list |
| Access: | public |
void setRedirectUrl(
string
$url, [bool
$force = false]
)
|
|
Set redirect URL.
Parameters:
|
string |
$url: |
The redirect url |
|
bool |
$force: |
Force to set this redirect url |
API Tags:
string statementDetails(
array
$stmts, int
$id
)
|
|
Get the statement details
Parameters:
|
array |
$stmts: |
Array with statements |
|
int |
$id: |
The index in the statements array we want the details from |
API Tags:
| Return: | The statement details |
| Access: | public |
string urlParams(
array
$params
)
|
|
Convert a params array to a querystring to add to the url
Parameters:
API Tags:
bool _addQuery(
string
$query
)
|
|
Add a query string to the debugger
Parameters:
API Tags:
| Return: | Indication if query is added |
| Access: | protected |
bool _addStatement(
string
$txt
)
|
|
Add a debug statement
Parameters:
|
string |
$txt: |
The debug statement |
API Tags:
| Return: | Indication if statement is added |
| Access: | protected |