static mixed dumpVar(
mixed
$var, [
$varName = PHP_DEBUG_DUMP_VARNAME], [integer
$mode = PHP_DEBUG_DUMP_DISP], string
$varname
)
|
|
Display the content of any kind of variable
Display the content of any kind of variable
- Mode PHP_DEBUG_DUMP_ARR_DISP display the array
- Mode PHP_DEBUG_DUMP_ARR_STR return the infos as a string
Parameters:
mixed |
$var: |
Variable to dump |
string |
$varname: |
Name of the variable |
integer |
$mode: |
Mode of function |
|
$varName: |
|
API Tags:
Return: | Nothing or string depending on the mode |
Information Tags:
Since: | V2.0.0 - 25 Apr 2006 |
Todo: | I don't know if it is a good practice to have static properties for static functions, to check |
static float getElapsedTime(
float
$timeStart, float
$timeEnd
)
|
|
Get elapsed time between 2 timestamp
Get elapsed time between 2 timestamp
Parameters:
float |
$timeStart: |
Start time |
float |
$timeEnd: |
End time |
API Tags:
Information Tags:
static numeric getMicroTime(
$time
$time
)
|
|
Return microtime from a timestamp
Return microtime from a timestamp
Parameters:
$time |
$time: |
Timestamp to retrieve micro time |
API Tags:
Return: | Microtime of timestamp param |
See: | $DebugMode |
Information Tags:
Since: | V1.1.0 - 14 Nov 2003 |
static void getMicroTimeNow(
)
|
|
Alias for getMicroTime(microtime()
Alias for getMicroTime(microtime()
API Tags:
Information Tags:
Since: | V2.0.0 - 19 apr 2006 |
Debug __construct(
[array
$options = array()]
)
|
|
PHP_Debug class constructor
PHP_Debug class constructor
Here we set :
- the execution start time
- the options
- the error and watch call back functions
Parameters:
array |
$options: |
Array containing options to affect to Debug object and his childs |
Information Tags:
Since: | V2.0.0 - 11 apr 2006 |
Debug class destructor
Debug class destructor
Information Tags:
Since: | V2.0.0 - 11 apr 2006 |
void add(
$info, [
$type = PHP_DEBUGLINE_STD]
)
|
|
This is an alias for the addDebug function
This is an alias for the addDebug function
Parameters:
API Tags:
Information Tags:
Since: | V2.0.0 - 20 apr 2006 |
void addDebug(
string
$info, [integer
$type = PHP_DEBUGLINE_STD], [
$position = PHP_DEBUG_POSITIONLAST]
)
|
|
Add a debug information
Add a debug information
Parameters:
string |
$info: |
The main debug information (may be empty for some debug line types) |
integer |
$type: |
Type of the Debug_Line |
|
$position: |
|
API Tags:
Access: | public |
See: | Debug constants |
Information Tags:
void addDebugFirst(
$info, [
$type = PHP_DEBUGLINE_STD]
)
|
|
Add a debug info before all the existing other debug lines
Add a debug info before all the existing other debug lines It is an alias for addDebug($info, PHP_DEBUG_POSITIONLAST)
Parameters:
API Tags:
Information Tags:
Alias for the render function
Alias for the render function
API Tags:
Information Tags:
Since: | V2.0.0 - 17 apr 2006 |
void dump(
$obj, [
$varName = STR_N], mixed
$var, string
$varname
)
|
|
This a method to dump the content of any variable and add the result in
This a method to dump the content of any variable and add the result in the debug information
Parameters:
mixed |
$var: |
Variable to dump |
string |
$varname: |
Name of the variable |
|
$obj: |
|
|
$varName: |
|
API Tags:
Information Tags:
Since: | V2.0.0 - 25 Apr 2006 |
This is an alias for the addDebug function when wanting to add an
This is an alias for the addDebug function when wanting to add an application error
Parameters:
API Tags:
Information Tags:
Since: | V2.0.0 - 21 Apr 2006 |
void errorHandlerCallback(
)
|
|
Callback function for php error handling
Callback function for php error handling
Warning : the only PHP error codes that are processed by this user handler are : E_WARNING, E_NOTICE, E_USER_ERROR For the other error codes the standart php handler will be used
API Tags:
Information Tags:
Since: | V2.0.0 - 17 apr 2006 |
Getter of debugString property
Getter of debugString property
API Tags:
Information Tags:
Since: | V2.0.0 - 13 apr 2006 |
Return the display
Return the display
API Tags:
Information Tags:
Since: | V2.0.1 - 17 apr 2006 |
void getOption(
$optionIdx, string
$optionsIdx
)
|
|
Get one option
Get one option
Parameters:
string |
$optionsIdx: |
Name of the option to get |
|
$optionIdx: |
|
API Tags:
Information Tags:
Since: | V2.0.0 - 13 apr 2006 |
Get global process time
Get global process time
API Tags:
Information Tags:
Since: | V2.0.0 - 21 Apr 2006 |
Getter of queryCount property
Getter of queryCount property
API Tags:
Information Tags:
Since: | @since V2.0.0 - 21 Apr 2006 |
Get database related process time
Get database related process time
API Tags:
Information Tags:
Since: | V2.0.0 - 21 Apr 2006 |
array getRequiredFiles(
)
|
|
Getter of requiredFiles property
Getter of requiredFiles property
API Tags:
Information Tags:
Since: | V2.0.0 - 13 apr 2006 |
Return the style sheet of the HTML_TABLE debug object
Return the style sheet of the HTML_TABLE debug object
API Tags:
Return: | The stylesheet |
Access: | public |
Test if the client is allowed to access the debug information
Test if the client is allowed to access the debug information There are several possibilities :
- 'DEBUG_restrict_access' flag is set to false
- 'DEBUG_restrict_access' flag is set to true and client IP is the
allowed ip in the options 'DEBUG_allowed_ip'- Access by url is allowed with flag 'DEBUG_allow_url_access' then
the client must enter the good key and password in the url
API Tags:
Information Tags:
Since: | V2.0.0 - 20 apr 2006 |
This is an alias for the addDebug function when wanting to add a query
This is an alias for the addDebug function when wanting to add a query debug information
Parameters:
API Tags:
Information Tags:
Since: | V2.0.0 - 21 Apr 2006 |
PHP_Debug default output function, first we finish the processes and
PHP_Debug default output function, first we finish the processes and then a render object is created and its render method is invoked
The renderer used is set with the options, all the possible renderer are in the directory Debug/Renderer/*.php (not the files ending by '_Config.php')
API Tags:
Information Tags:
Since: | V2.0.0 - 13 apr 2006 |
void restrictAcess(
array
$ip
)
|
|
Restrict access to a list of IP
Restrict access to a list of IP
Parameters:
array |
$ip: |
Array with IP to allow access |
API Tags:
Information Tags:
void setAction(
string
$action
)
|
|
Set the main action of PHP script
Set the main action of PHP script
Parameters:
string |
$action: |
Name of the main action of the file |
API Tags:
Access: | public |
See: | PHP_DEBUGLINE_CURRENTFILE |
Information Tags:
Since: | V2.0.0 - 25 Apr 2006 |
Set the callback function to process replace the php error handler,
Set the callback function to process replace the php error handler, enabled depending of the options flag 'DEBUG_replace_errorhandler'
API Tags:
Information Tags:
Since: | V2.0.0 - 16 apr 2006 |
Set the callback fucntion to process the watches, enabled depending of
Set the callback fucntion to process the watches, enabled depending of the options flag 'DEBUG_enable_watch'
API Tags:
Information Tags:
Since: | V2.0.0 - 16 apr 2006 |
Set the endtime for a Debug_Line in order to monitor the performance
Set the endtime for a Debug_Line in order to monitor the performance of a part of script
API Tags:
Access: | public |
See: | Debug_Line::endTime |
Information Tags:
Since: | V2.0.0 - 19 apr 2006 |
void watch(
string
$variableName
)
|
|
Add a variable to the watchlist.
Add a variable to the watchlist. Watched variables must be in a declare (ticks=n) block so that every n ticks the watched variables are checked for changes. If any changes were made, the new value of the variable is recorded
Parameters:
string |
$variableName: |
Variable to watch |
API Tags:
Information Tags:
Since: | V2.0.0 - 17 apr 2006 |
Watch callback function, process watches and add changes to the debug
Watch callback function, process watches and add changes to the debug information
API Tags:
Information Tags:
Since: | V2.0.0 - 17 apr 2006 |
Debug default output function, simply uses the static dump fonction
Debug default output function, simply uses the static dump fonction of this class
API Tags:
Information Tags:
Since: | V2.0.0 - 11 apr 2006 |