Source for file DebugLine.php
Documentation is available at DebugLine.php 
 * A loader class for the renderers.  
 * @package    linea21.externals  
 * @author     Vernet Loïc <qrf_coil[at]yahoo.fr>, modified by Linea21 <info@linea21.com>  
 * @since V2.0.0 - 10 Apr 2006  
 * @version    CVS: $Id: DebugLine.php,v 1.1 2008/05/02 14:26:37 c0il Exp $  
   * - TYPE_ANY          : All available types (for search mode)  
   * - TYPE_STD          : Standart debug  
   * - TYPE_QUERY        : Query debug  
   * - TYPE_REL          : Database related debug  
   * - TYPE_ENV          : Environment debug ($GLOBALS...)  
   * - TYPE_APPERROR     : Custom application error  
   * - TYPE_CREDITS      : Credits information  
   * - TYPE_SEARCH       : Search mode in debug  
   * - TYPE_DUMP         : Dump any kind of variable  
   * - TYPE_PROCESSPERF  : Performance analysys  
   * - TYPE_TEMPLATES    : Included templates of the calling script  
   * - TYPE_PAGEACTION   : Store main page action  
   * - TYPE_SQLPARSE     : SQL Parse error  
   * - TYPE_WATCH        : A variable to watch  
   * - TYPE_PHPERROR     : A debug generated by the custom error handler  
  const TYPE_PROCESSPERF =  9;  
  const TYPE_TEMPLATES   =  10;  
  const TYPE_PAGEACTION  =  11;  
  const TYPE_SQLPARSE    =  12;  
  const TYPE_PHPERROR    =  14;  
  const TYPE_DEFAULT     =  self::TYPE_STD;  
   * PHP_DEBUGLINE info levels  
   * Labels for debugline types  
  public static $debugLineLabels =  array(  
  self::TYPE_STD         =>  'Standart',  
  self::TYPE_QUERY       =>  'Query',  
  self::TYPE_QUERYREL    =>  'Database related',  
  self::TYPE_ENV         =>  'Environment',  
  self::TYPE_APPERROR    =>  'Application error',  
  self::TYPE_CREDITS     =>  'Credits',  
  self::TYPE_SEARCH      =>  'Search',  
  self::TYPE_DUMP        =>  'Variable dump',  
  self::TYPE_PROCESSPERF =>  'Performance analysis',  
  self::TYPE_TEMPLATES   =>  'Included files',  
  self::TYPE_PAGEACTION  =>  'Page main action',  
  self::TYPE_SQLPARSE    =>  'SQL parse error',  
  self::TYPE_WATCH       =>  'Watch',  
  self::TYPE_PHPERROR    =>  'PHP error'  
   * Properties that stores the non formatted debug information  
   * @since V2.0.0 - 11 apr 2006  
   * Type of the debug information  
   * @since V2.0.0 - 11 apr 2006  
   * @see Debug_Line constants  
   * @since V2.0.0 - 11 apr 2006  
   * @since V2.0.0 - 11 apr 2006  
   * Class from witch the debug was called  
   * @since V2.0.0 - 13 apr 2006  
   * Function from wich the debug was called  
   * @since V2.0.0 - 11 apr 2006  
   * Exection time for debug info  
   * @since V2.0.0 - 16 apr 2006  
   * Exection end time for debug info  
   * @see PHP_Debug::stopTimer(), setEndTime()  
   * @since V2.0.0 - 16 apr 2006  
   * PHP_DebugLine class constructor  
   * - the start time of the debug info  
   * - the traceback information  
   * @since V2.0.0 - 11 apr 2006  
  public function __construct($info, $type =  self::TYPE_DEFAULT)  
   * Fills properties of debug line with backtrace informations  
   * @since V2.0.0 - 15 apr 2006  
    // Get max id of 'add' debug functions  
    foreach($callStack as $lkey =>  $lvalue) {  
      if (in_array($callStack[$lkey]['function'],  
      PHP_Debug::$excludedBackTraceFunctions) ==  true  
    $this->file     =  !empty($callStack[$idx]  ['file'])  
    ?  $callStack[$idx]['file']       :  ''; 
    $this->line     =  !empty($callStack[$idx]  ['line'])  
    ?  $callStack[$idx]['line']       :  ''; 
    $this->function =  !empty($callStack[$idx+ 1]['function'])  
    ?  $callStack[$idx+ 1]['function'] :  ''; 
    $this->class    =  !empty($callStack[$idx+ 1]['class'])  
    ?  $callStack[$idx+ 1]['class']    :  ''; 
   * Getter of all properties of Debug_Line object  
   * @return array    Array containg all the properties of the debugline  
   * @since V2.0.0 - 21 apr 2006  
   * @since V2.0.0 - 19 apr 2006  
   * @see pear bug http://pear.php.net/bugs/10919  
   * @since V2.1.2 - 04 may 2006  
   * Debug_Line default output function  
   * @since V2.0.0 - 11 apr 2006  
   * @see PHP_Debug::dumpVar()  
   * Function that give the debug type lable  
   * @since  V2.0.0 - 2 apr 2007  
    return self::$debugLineLabels[$type];  
 
 
        
       |