Class: PHP_Debug
Source Location: /class/system/PHP_Debug/PHP/Debug.php
  
 
 
Class Details
  
 
 
Class Variables
 
 
Class Methods
   
	
	static method dumpVar [line 841]
	
    
    
		static 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
  
Tags:
	
        Parameters:
    
        
   
   
	
	static method getElapsedTime [line 734]
	
    
    
		static float getElapsedTime(
float
$timeStart, float
$timeEnd)
     |   
     |  
 
	
		Get elapsed time between 2 timestamp
 Tags:
	
        Parameters:
    
        
   
   
	
	static method getHost [line 775]
	
    
	
		Returns current host name.
 Tags:
	
        
   
   
	
	static method getMicroTime [line 706]
	
    
    
		static numeric getMicroTime(
$time
$time)
     |   
     |  
 
	
		Return microtime from a timestamp
 Tags:
	
        Parameters:
    
        
   
   
	
	static method getMicroTimeNow [line 718]
	
    
    
		static void getMicroTimeNow(
)
     |   
     |  
 
	
		Alias for getMicroTime(microtime()
 Tags:
	
        
   
   
	
	static method getQueryString [line 799]
	
    
    
		static void getQueryString(
)
     |   
     |  
 
	
		Return the query string
 Tags:
	
        
   
   
	
	static method getScriptName [line 787]
	
    
    
		static string getScriptName(
)
     |   
     |  
 
	
		Returns current script name.
 Tags:
	
        
   
   
	
	static method getUriPrefix [line 744]
	
    
    
		static string getUriPrefix(
)
     |   
     |  
 
	
		Returns Uri prefix, including protocol, hostname and server port.
 Tags:
	
        
   
   
	
	static method getUrl [line 810]
	
    
	
		Return the full url
 Tags:
	
        
   
   
	
	static method isSecure [line 765]
	
    
	
		Test if url is secured
 Tags:
	
        
   
   
	
	method add [line 320]
	
    
    
		void add(
$info, [
$type = PHP_DebugLine::TYPE_STD])
     |   
     |  
 
	
		This is an alias for the addDebug function
 Tags:
	
        Parameters:
    
        
   
   
	
	method addDebug [line 277]
	
    
    
		void addDebug(
string
$info, [integer
$type = PHP_DebugLine::TYPE_STD], [
$position = self::POSITIONLAST])
     |   
     |  
 
	
		Add a debug information
 Tags:
	
        Parameters:
    
        
   
   
	
	method addDebugFirst [line 309]
	
    
    
		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)
 Tags:
	
        Parameters:
    
        
   
   
	
	method addProcessPerf [line 367]
	
    
	
		This is an alias for adding the monitoring of processtime
 Tags:
	
        
   
   
	
	method addSetting [line 409]
	
    
    
		void addSetting(
$value, 
$name, string
$action)
     |   
     |  
 
	
		Add an application setting
 Tags:
	
        Parameters:
    
        
   
   
	
	method addSettings [line 422]
	
    
    
		void addSettings(
$values, 
$name, string
$action)
     |   
     |  
 
	
		Add a group of settings
 Tags:
	
        Parameters:
    
        
   
   
	
	method display [line 622]
	
    
	
		Alias for the render function
 Tags:
	
        
   
   
	
	method dump [line 381]
	
    
    
		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
 Tags:
	
        Parameters:
    
        
   
   
	
	method error [line 356]
	
    
	
		This is an alias for the addDebug function when wanting to add an  application error
 Tags:
	
        Parameters:
    
        
   
   
	
	method errorHandlerCallback [line 481]
	
    
    
		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 
Tags:
	
        
   
   
	
	method getDebugBuffer [line 922]
	
    
	
		Getter of debugString property
 Tags:
	
        
   
   
	
	method getOption [line 899]
	
    
    
		void getOption(
$optionIdx, string
$optionsIdx)
     |   
     |  
 
	
		Get one option
 Tags:
	
        Parameters:
    
        
   
   
	
	method getOutput [line 633]
	
    
	
		Return the output without displaying it
 Tags:
	
        
   
   
	
	method getProcessTime [line 553]
	
    
	
		Get global process time
 Tags:
	
        
   
   
	
	method getQueryCount [line 933]
	
    
	
		Getter of queryCount property
 Tags:
	
        
   
   
	
	method getQueryTime [line 567]
	
    
	
		Get database related process time
 Tags:
	
        
   
   
	
	method getRequiredFiles [line 911]
	
    
    
		array getRequiredFiles(
)
     |   
     |  
 
	
		Getter of requiredFiles property
 Tags:
	
        
   
   
	
	constructor __construct [line 259]
	
    
    
		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
  
Tags:
	
        Parameters:
    
        
   
   
	
	method isAllowed [line 662]
	
    
	
		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
 Tags:
	
        
   
   
	
	method query [line 332]
	
    
	
		This is an alias for the addDebug function when wanting to add a query  debug information
 Tags:
	
        Parameters:
    
        
   
   
	
	method queryRel [line 344]
	
    
	
		This is an alias for the addDebug function when wanting to add a  database related debug info
 Tags:
	
        Parameters:
    
        
   
   
	
	method render [line 597]
	
    
	
		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') 
Tags:
	
        
   
   
	
	method restrictAccess [line 645]
	
    
    
		void restrictAccess(
array
$ip)
     |   
     |  
 
	
		Restrict access to a list of IP
 Tags:
	
        Parameters:
    
        
   
   
	
	method setAction [line 396]
	
    
    
		void setAction(
string
$action)
     |   
     |  
 
	
		Set the main action of PHP script
 Tags:
	
        Parameters:
    
        
   
   
	
	method setErrorHandler [line 459]
	
    
	
		Set the callback function to process replace the php error handler,  enabled depending of the options flag 'replace_errorhandler'
 Tags:
	
        
   
   
	
	method setWatchCallback [line 442]
	
    
	
		Set the callback fucntion to process the watches, enabled depending of  the options flag 'enable_watch'
 Tags:
	
        
   
   
	
	method stopTimer [line 822]
	
    
	
		Set the endtime for a DebugLine in order to monitor the performance  of a part of script
 Tags:
	
        
   
   
	
	method watch [line 505]
	
    
    
		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 
Tags:
	
        Parameters:
    
        
   
   
	
	method watchesCallback [line 525]
	
    
	
		Watch callback function, process watches and add changes to the debug  information
 Tags:
	
        
   
   
	
	method __toString [line 945]
	
    
	
		Debug default output function, simply uses the static dump fonction  of this class
 Tags:
	
        
   
  
 
Class Constants
 
        
       |   
     |