mixed Debug(
[mixed
$DebugMode = DBG_MODE_DEFAULT], integer
$debugmode
)
|
|
Debug() : Constructor of Debug object
Set debugmode, credits line and search line are added at creation if they are activated.
Parameters:
API Tags:
Information Tags:
void addDebug(
string
$str, [integer
$typeDebug = DBGLINE_STD], [string
$file = STR_N], [string
$line = STR_N], [string
$title = STR_N]
)
|
|
addDebug() : Build a new debug line info.
If $str is a String or an object we switch automatically to the corresponding debug info type. If debug mode is OFF does not do anything and return. Debug line is build, then it is added in the DebugLine array.
Parameters:
string |
$str: |
Debug string/object |
integer |
$typeDebug: |
Debug type of line (Optional, Default = DBGLINE_STD) |
string |
$file: |
File of debug info (Optional, Default = "") |
string |
$line: |
Line of debug info (Optional, Default = "") |
string |
$title: |
Title of variable if applicable (Optional, Default = "") |
API Tags:
Information Tags:
void addRequiredFilesPattern(
string
$pattern, [mixed
$replace_str = STR_N]
)
|
|
addRequiredFilesPattern() : Add a remove pattern to remove pattern array.
Parameters:
string |
$pattern: |
Pattern to add |
API Tags:
Information Tags:
void CancelPerf(
Integer
$processtype
)
|
|
CancelPerf() : Cancel a process time monitoring, error or misc exception
Parameters:
Integer |
$processtype: |
Type of the process to cancel |
API Tags:
Information Tags:
void DebugDisplay(
[mixed
$display_mod = DBG_MODE_AUTO], string
$search_str, integer
$display_mode
)
|
|
DebugDisplay() : This is the function to display debug infos
Parameters:
string |
$search_str: |
Search string ( Optional, default = "" ) |
integer |
$display_mode: |
Mode of display ( DBG_MODE_AUTO ) |
API Tags:
Information Tags:
void DebugPerf(
[integer
$processtype = DBGLINE_QUERY]
)
|
|
DebugPerf() : Get process time and stats about database processing.
If $processtype is DBG_PERF_QRY then a query has been run, otherwise it is another database process. The start and end time is computed, and the global time is updated.
Parameters:
integer |
$processtype: |
Type of database debug query or database related. |
API Tags:
Information Tags:
void delRequiredFilesPattern(
string
$pattern
)
|
|
delRequiredFilesPattern() : Del a remove pattern from remove pattern array.
Parameters:
string |
$pattern: |
Pattern to remove |
API Tags:
Information Tags:
mixed DumpArr(
array
$arr, [string
$varname = DUMP_ARR_TABNAME], [integer
$mode = DUMP_ARR_DISP]
)
|
|
DumpArr() : Display all content of an array
Mode DUMP_ARR_DISP display the array Mode DUMP_ARR_STR return the infos as a string
Parameters:
array |
$arr: |
array Array to debug |
string |
$varname: |
Name of the variable |
integer |
$mode: |
Mode of function |
API Tags:
Return: | Nothing or string depending on the mode |
Access: | public |
Static: | |
Information Tags:
mixed DumpObj(
array
$obj, [string
$varname = DUMP_ARR_OBJNAME], [integer
$mode = DUMP_ARR_DISP]
)
|
|
DumpObj() : Debug an object or array with Var_Dump pear package
( Not useable with standalone version ) Mode DUMP_ARR_DISP display the array Mode DUMP_ARR_STR return the infos as a string
Parameters:
array |
$obj: |
Object to debug |
string |
$varname: |
Name of the variable |
integer |
$mode: |
Mode of function |
API Tags:
Return: | Nothing or string depending on the mode |
Access: | public |
Static: | |
Information Tags:
void generateStyleSheet(
)
|
|
generateStyleSheet()
boolean getBoldCodeType(
mixed
$DebugLineType
)
|
|
getBoldCodeType() : Retrieve Bold cell status of the debug cell
API Tags:
Information Tags:
string getColorCodeClass(
mixed
$DebugLineType
)
|
|
getColorCodeClass() : Retrieve color code class from a color
API Tags:
Information Tags:
string getColorCodeType(
mixed
$DebugLineType
)
|
|
getColorCodeType() : Retrieve color code of the debug cell
API Tags:
Information Tags:
getDatabaseName() : Get the name of database
API Tags:
Information Tags:
getDebugMode() : Return current debug mode
API Tags:
Information Tags:
numeric getElapsedTime(
$timeStart
$timeStart, $timeEnd
$timeEnd
)
|
|
getElapsedTime() : get elapsed time between 2 timestamp
Parameters:
$timeStart |
$timeStart: |
Start time ref |
$timeEnd |
$timeEnd: |
End time ref |
API Tags:
Information Tags:
void getMaxQueryLineLength(
)
|
|
getMaxQueryLineLength() : Get max query line length
API Tags:
Information Tags:
numeric getMicroTime(
$time
$time
)
|
|
getMicroTime() : Return micotime from a timestamp
Parameters:
$time |
$time: |
Timestamp to retrieve micro time |
API Tags:
Information Tags:
void getPhpMyAdminStatus(
)
|
|
getPhpMyAdminStatus() : Get PhpmyAdmin status
API Tags:
Information Tags:
getPhpMyAdminUrl() : Get the url of PhpmyAdmin
API Tags:
Information Tags:
numeric getProcessTime(
)
|
|
getProcessTime() : Get global process time
API Tags:
Information Tags:
boolean getTypeInSearch(
mixed
$DebugLineType
)
|
|
getTypeInSearch() : Retrieve if debug type is displayed in search mode
API Tags:
Information Tags:
void parseSQL(
string
$sql
)
|
|
parseSQL() : Function that parse a SQL String add a debug info if it is invalid
Parameters:
string |
$sql: |
SQL Query to parse |
API Tags:
Information Tags:
void runUnitTests(
[mixed
$fullmode = false]
)
|
|
UniTtests() : Make the unit tests of the debug class
API Tags:
Information Tags:
void setBoldCodeType(
Integer
$DebugLineType, boolean
$BoldStatus
)
|
|
setBoldCodeType() : Set Bold cell status of a debug type
Parameters:
Integer |
$DebugLineType: |
Type of debug line |
boolean |
$BoldStatus: |
Status of cell true or false |
API Tags:
Information Tags:
void setColorCodeType(
Integer
$DebugLineType, mixed
$color, String
$Color
)
|
|
setColorCodeType() : Set color code of the debug cell type
Parameters:
Integer |
$DebugLineType: |
Type of debug line |
String |
$Color: |
Color of cell |
API Tags:
Information Tags:
void setDatabaseName(
string
$DataBaseName
)
|
|
setDatabaseName() : Set database name for phpmyadmin links
Parameters:
string |
$DataBaseName: |
Name of database |
API Tags:
Information Tags:
void setDebugMode(
mixed
$debugmode, integer
$debugmode
)
|
|
setDebugMode() : Set debug mode of Debug Object
Parameters:
API Tags:
Information Tags:
void setMaxQueryLineLength(
mixed
$length
)
|
|
setMaxQueryLineLength() : Set max query line length
API Tags:
Information Tags:
void setPhpMyAdminStatus(
boolean
$status
)
|
|
setPhpMyAdminStatus($status) : Set status of phpmyadmin
Parameters:
boolean |
$status: |
True or false |
API Tags:
Information Tags:
void setPhpMyAdminUrl(
string
$PhpMyadminUrl
)
|
|
setPhpMyAdminUrl() : Set the url of PhpmyAdmin
Parameters:
string |
$PhpMyadminUrl: |
URL OF phpmyadmin |
API Tags:
Information Tags:
void setTypeInSearch(
Integer
$DebugLineType, mixed
$Status, boolean
$BoldStatus
)
|
|
setTypeInSearch() : Set if debug type is displayed in search mode
Parameters:
Integer |
$DebugLineType: |
Type of debug line |
boolean |
$BoldStatus: |
Status of cell true or false |
API Tags:
Information Tags: