static void add(
string
$str
)
|
|
add a string to debug log registry without printing it (so no "headers already sent" error appears)
You can then retrieve the content of registry using dump or print it using pdump
Parameters:
API Tags:
static array btrace(
[int
$level = 0], [bool
$reverseOrder = false], [string
$filterFnc = null]
)
|
|
an improved debug_backtrace function with level and order selection
Parameters:
|
int |
$level: |
|
|
bool |
$reverseOrder: |
whether to show lines in reverse order |
|
string |
$filterFnc: |
filterFnc a function name: if a filter function is set btrace will return an array of array from params of each call |
API Tags:
static void debugLog(
$label,
$message, [
$channel = 'log']
)
|
|
helper function for debug module
take a look at http://websvn.cyberspectrum.de/wsvn/tl_debug/ for web svn interface to the extension
Parameters:
|
|
$label: |
|
|
|
$message: |
|
|
|
$channel: |
|
API Tags:
static void displayErrors(
)
|
|
a quick way to enable the display of errors
use this function only in a testing environment
API Tags:
static string dump(
[string
$tag = '']
)
|
|
returns the content of log registry if a tag name is specified the output will be "wrapped" into the specified tag
e.g. you can call ZedSeriesDebug::dump('textarea') to obtain the log registry inside a textarea
Parameters:
|
string |
$tag: |
the tag into which the output will be wrapped |
API Tags:
static void dumpKeys(
array
$arrData, string
$strPattern, [
$mode = 'startswith']
)
|
|
Parameters:
|
string |
$strPattern: |
|
|
array |
$arrData: |
array values to dump |
|
|
$mode: |
|
API Tags:
static void error(
$label,
$message
)
|
|
wrapper function for debug module channel error
Parameters:
API Tags:
write the content of log registry to system/logs/zedseriesdebug.log
API Tags:
static void info(
$label,
$message
)
|
|
wrapper function for debug module channel info
Parameters:
API Tags:
static void log(
$label,
$message
)
|
|
wrapper function for debug module channel log
Parameters:
API Tags:
static void pbtrace(
[
$level = 0], [
$reverseOrder = false], [
$filterFnc = null]
)
|
|
print the result of btrace
see the btrace signature for an explanation of the parameters list
Parameters:
|
|
$level: |
|
|
|
$reverseOrder: |
|
|
|
$filterFnc: |
|
API Tags:
static void pdump(
[bool
$useHeaderTextPlain = false], [bool
$exitAfter = false]
)
|
|
print the content of log registry
you can output it in text/plain or html format
Parameters:
|
bool |
$useHeaderTextPlain: |
whether to print it in text/plain format (otherwise html format will be used) |
|
bool |
$exitAfter: |
whether to exit after printing |
API Tags:
static void warn(
$label,
$message
)
|
|
wrapper function for debug module channel warn
Parameters:
API Tags: