linea21-externals
[ class tree: linea21-externals ] [ index: linea21-externals ] [ all elements ]

Class: PHP_DebugLine

Source Location: /class/system/PHP_Debug/PHP/DebugLine.php

Class Overview


A loader class for the renderers.


Author(s):

Version:

  • CVS: $Id: DebugLine.php,v 1.1 2008/05/02 14:26:37 c0il Exp $

Variables

Constants

Methods



Class Details

[line 14]
A loader class for the renderers.



Tags:

author:  Vernet Loïc <qrf_coil[at]yahoo.fr>, modified by Linea21 <info@linea21.com>
version:  CVS: $Id: DebugLine.php,v 1.1 2008/05/02 14:26:37 c0il Exp $
since:  V2.0.0 - 10 Apr 2006
filesource:  Source Code for this file


[ Top ]


Class Variables

static $debugLineLabels = array(
  self::TYPE_ANY         => 'ALL',
  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'
  )

[line 66]

Labels for debugline types



Tags:

access:  public

Type:   mixed


[ Top ]

$class =

[line 123]

Class from witch the debug was called



Tags:

since:  V2.0.0 - 13 apr 2006
access:  protected

Type:   integer


[ Top ]

$endTime =

[line 149]

Exection end time for debug info



Tags:

see:  PHP_Debug::stopTimer(), PHP_DebugLine::setEndTime()
since:  V2.0.0 - 16 apr 2006
access:  protected

Type:   float


[ Top ]

$file =

[line 107]

File of debug info



Tags:

since:  V2.0.0 - 11 apr 2006
access:  protected

Type:   integer


[ Top ]

$function =

[line 131]

Function from wich the debug was called



Tags:

since:  V2.0.0 - 11 apr 2006
access:  protected

Type:   integer


[ Top ]

$info =

[line 90]

Properties that stores the non formatted debug information



Tags:

since:  V2.0.0 - 11 apr 2006
access:  protected

Type:   string


[ Top ]

$line =

[line 115]

Line of debug info



Tags:

since:  V2.0.0 - 11 apr 2006
access:  protected

Type:   integer


[ Top ]

$startTime =

[line 140]

Exection time for debug info



Tags:

see:  stopTimer()
since:  V2.0.0 - 16 apr 2006
access:  protected

Type:   float


[ Top ]

$type =

[line 99]

Type of the debug information



Tags:

see:  Debug_Line constants
since:  V2.0.0 - 11 apr 2006
access:  protected

Type:   integer


[ Top ]



Class Methods


static method getDebugLabel [line 264]

static void getDebugLabel( $type)

Function that give the debug type lable



Tags:

author:  COil
since:  V2.0.0 - 2 apr 2007
access:  public


Parameters:

   $type  

[ Top ]

method getProperties [line 204]

array getProperties( )

Getter of all properties of Debug_Line object



Tags:

return:  Array containg all the properties of the debugline
since:  V2.0.0 - 21 apr 2006
access:  public


[ Top ]

method setEndTime [line 223]

void setEndTime( [ $endTime = ''])

setter of endTime



Tags:

since:  V2.0.0 - 19 apr 2006
access:  public


Parameters:

   $endTime  

[ Top ]

method setStartTime [line 235]

void setStartTime( [ $startTime = ''])

setter of startTime



Tags:

see:  pear bug http://pear.php.net/bugs/10919
since:  V2.1.2 - 04 may 2006
access:  public


Parameters:

   $startTime  

[ Top ]

method setTraceback [line 174]

void setTraceback( )

Fills properties of debug line with backtrace informations



Tags:

since:  V2.0.0 - 15 apr 2006
access:  protected


[ Top ]

constructor __construct [line 161]

PHP_DebugLine __construct( $info, [ $type = self::TYPE_DEFAULT])

PHP_DebugLine class constructor

Here it is set :

  • the start time of the debug info
  • the traceback information




Tags:

see:  PHP_Debug::add()
since:  V2.0.0 - 11 apr 2006
access:  public


Parameters:

   $info  
   $type  

[ Top ]

method __toString [line 246]

void __toString( )

Debug_Line default output function



Tags:

see:  PHP_Debug::dumpVar()
since:  V2.0.0 - 11 apr 2006
access:  public


[ Top ]


Class Constants

ERROR_LEVEL =  3

[line 61]


[ Top ]

INFO_LEVEL =  1

[line 59]

PHP_DEBUGLINE info levels


[ Top ]

TYPE_ANY =  0

[line 39]

PHP_DEBUGLINE Types

  • 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



[ Top ]

TYPE_APPERROR =  5

[line 44]


[ Top ]

TYPE_CREDITS =  6

[line 45]


[ Top ]

TYPE_DEFAULT =  self::TYPE_STD

[line 54]


[ Top ]

TYPE_DUMP =  8

[line 47]


[ Top ]

TYPE_ENV =  4

[line 43]


[ Top ]

TYPE_PAGEACTION =  11

[line 50]


[ Top ]

TYPE_PHPERROR =  14

[line 53]


[ Top ]

TYPE_PROCESSPERF =  9

[line 48]


[ Top ]

TYPE_QUERY =  2

[line 41]


[ Top ]

TYPE_QUERYREL =  3

[line 42]


[ Top ]

TYPE_SEARCH =  7

[line 46]


[ Top ]

TYPE_SQLPARSE =  12

[line 51]


[ Top ]

TYPE_STD =  1

[line 40]


[ Top ]

TYPE_TEMPLATES =  10

[line 49]


[ Top ]

TYPE_WATCH =  13

[line 52]


[ Top ]

WARNING_LEVEL =  2

[line 60]


[ Top ]



Documentation generated on Thu, 03 May 2012 15:03:36 +0200 by phpDocumentor 1.4.1