Class: PHP_Debug
Source Location: /PHP_Debug-1.0.3/PHP/Debug.php
Inherited Variables
|
Inherited Methods
|
Class Details
[line 71]
Class Variables
Method Detail
add [line 321]
void add(
$info, [
$type = PHP_DebugLine::TYPE_STD])
|
|
This is an alias for the addDebug function
Parameters:
addDebug [line 278]
void addDebug(
string
$info, [integer
$type = PHP_DebugLine::TYPE_STD], [
$position = self::POSITIONLAST])
|
|
Add a debug information
Parameters:
addDebugFirst [line 310]
void addDebugFirst(
$info, [
$type = PHP_DebugLine::TYPE_STD])
|
|
Add a debug info before all the existing other debug lines It is an alias for addDebug($info, self::POSITIONLAST)
Parameters:
addProcessPerf [line 368]
This is an alias for adding the monitoring of processtime
addSetting [line 410]
void addSetting(
$value,
$name, string
$action)
|
|
Add an application setting
Parameters:
addSettings [line 423]
void addSettings(
$values,
$name, string
$action)
|
|
Add a group of settings
Parameters:
display [line 623]
Alias for the render function
dump [line 382]
void dump(
$obj, [
$varName = ''], mixed
$var, string
$varname)
|
|
This a method to dump the content of any variable and add the result in the debug information
Parameters:
dumpVar [line 842]
mixed dumpVar(
mixed
$var, [
$varName = self::DUMP_VARNAME], [boolean
$stopExec = false], [integer
$mode = self::DUMP_DISP], string
$varname)
|
|
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:
error [line 357]
This is an alias for the addDebug function when wanting to add an application error
Parameters:
errorHandlerCallback [line 482]
void errorHandlerCallback(
)
|
|
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
getDebugBuffer [line 923]
Getter of debugString property
getElapsedTime [line 735]
float getElapsedTime(
float
$timeStart, float
$timeEnd)
|
|
Get elapsed time between 2 timestamp
Parameters:
getHost [line 776]
Returns current host name.
getMicroTime [line 707]
numeric getMicroTime(
$time
$time)
|
|
Return microtime from a timestamp
Parameters:
getMicroTimeNow [line 719]
Alias for getMicroTime(microtime()
getOption [line 900]
void getOption(
$optionIdx, string
$optionsIdx)
|
|
Get one option
Parameters:
getOutput [line 634]
Return the output without displaying it
getProcessTime [line 554]
getQueryCount [line 934]
Getter of queryCount property
getQueryString [line 800]
getQueryTime [line 568]
Get database related process time
getRequiredFiles [line 912]
array getRequiredFiles(
)
|
|
Getter of requiredFiles property
getScriptName [line 788]
Returns current script name.
getUriPrefix [line 745]
Returns Uri prefix, including protocol, hostname and server port.
getUrl [line 811]
__construct (Constructor) [line 260]
PHP_Debug __construct(
[array
$options = array()])
|
|
PHP_Debug class constructor Here we set : - the execution start time
- the options
- the error and watch call back functions
Parameters:
isAllowed [line 663]
Test if the client is allowed to access the debug information There are several possibilities : - 'restrict_access' flag is set to false
- 'restrict_access' flag is set to true and client IP is the
allowed ip in the options 'allowed_ip' - Access by url is allowed with flag 'allow_url_access' then
the client must enter the good key and password in the url
isSecure [line 766]
query [line 333]
This is an alias for the addDebug function when wanting to add a query debug information
Parameters:
queryRel [line 345]
This is an alias for the addDebug function when wanting to add a database related debug info
Parameters:
render [line 598]
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')
restrictAccess [line 646]
void restrictAccess(
array
$ip)
|
|
Restrict access to a list of IP
Parameters:
setAction [line 397]
void setAction(
string
$action)
|
|
Set the main action of PHP script
Parameters:
setErrorHandler [line 460]
Set the callback function to process replace the php error handler, enabled depending of the options flag 'replace_errorhandler'
setWatchCallback [line 443]
Set the callback fucntion to process the watches, enabled depending of the options flag 'enable_watch'
stopTimer [line 823]
Set the endtime for a DebugLine in order to monitor the performance of a part of script
watch [line 506]
void watch(
string
$variableName)
|
|
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:
watchesCallback [line 526]
Watch callback function, process watches and add changes to the debug information
__toString [line 946]
Debug default output function, simply uses the static dump fonction of this class
Documentation generated on Mon, 11 Mar 2019 15:28:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|