phpDocumentor
[ class tree: phpDocumentor ] [ index: phpDocumentor ] [ all elements ]

Class: ErrorTracker

Source Location: /phpDocumentor/Errors.inc

Class Overview


contains all the errors/warnings


Author(s):

Version:

  • Release: @VER@

Copyright:

  • 2001-2008 Gregory Beaver

Variables

Methods



Class Details

[line 894]
contains all the errors/warnings



Tags:

author:  Greg Beaver <[email protected]>
version:  Release: @VER@
copyright:  2001-2008 Gregory Beaver
see:  ErrorTracker::$errors, ErrorTracker::$warnings
link:  http://pear.php.net/PhpDocumentor
link:  http://www.phpdoc.org
todo:  CS cleanup - change package to PhpDocumentor
license:  LGPL


[ Top ]


Class Variables

$curfile =  ''

[line 909]


Type:   string


[ Top ]

$errors = array()

[line 900]

array of RecordErrors


Type:   array


[ Top ]

$lasterror =  false

[line 919]

index in $errors of last error triggered


Type:   integer|false


[ Top ]

$lastwarning =  false

[line 925]

index in $warnings of last warning triggered


Type:   integer|false


[ Top ]

$linenum =  0

[line 913]


Type:   integer


[ Top ]

$warnings = array()

[line 905]

array of RecordWarnings


Type:   array


[ Top ]



Class Methods


method addError [line 993]

void addError( integer $num, string $data...)

add a new error to the $errors array



Tags:

todo:  CS Cleanup - do I need to add $data to the method signature?


Parameters:

integer   $num   error number from Errors.inc
string   $data...   up to 4 string parameters to sprintf() into the error string for error number $num

[ Top ]

method addErrorReturn [line 1016]

void addErrorReturn( integer $num, string $data...)

add a new error to the $errors array and returns the error string



Tags:

todo:  CS Cleanup - do I need to add $data to the method signature?


Parameters:

integer   $num   error number from Errors.inc
string   $data...   up to 4 string parameters to sprintf() into the error string for error number $num

[ Top ]

method addWarning [line 970]

void addWarning( integer $num, string $data...)

add a new warning to the $warnings array



Tags:

todo:  CS Cleanup - do I need to add $data to the method signature?


Parameters:

integer   $num   error number from Errors.inc
string   $data...   up to 4 string parameters to sprintf() into the error string for error number $num

[ Top ]

method handleEvent [line 940]

void handleEvent( integer $num, mixed $data)

This function subscribes to two events in the Parser in order to keep track of line number information and file name.



Parameters:

integer   $num   parser-passed event (see PHPDOCUMENTOR_EVENT_NEWLINENUM, PHPDOCUMENTOR_EVENT_NEWFILE)
mixed   $data   either a line number if $num is PHPDOCUMENTOR_EVENT_NEWLINENUM or a file name if $num is PHPDOCUMENTOR_EVENT_NEWFILE

[ Top ]

method returnErrors [line 1045]

array &returnErrors( )

Get sorted array of all non-fatal errors in parsing/conversion



[ Top ]

method returnLastError [line 1077]

string returnLastError( )

Get the error message of the last error



[ Top ]

method returnLastWarning [line 1087]

string returnLastWarning( )

Get the warning message of the last warning



[ Top ]

method returnWarnings [line 1034]

array &returnWarnings( )

Get sorted array of all warnings in parsing/conversion



[ Top ]


Documentation generated on Tue, 06 Dec 2011 07:12:12 -0600 by phpDocumentor 1.4.4