Inherited Variables
Inherited Constants
Inherited Methods
Class Details
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 = ''
[ Top ]
$errors = array()
[ Top ]
$lasterror = false
[ Top ]
$lastwarning = false
[ Top ]
$linenum = 0
[ Top ]
$warnings = array()
[ Top ]
Class Methods
addError
void addError(
integer
$num, string
$data...)
[line 993]
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 ]
addErrorReturn
void addErrorReturn(
integer
$num, string
$data...)
[line 1016]
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 ]
addWarning
void addWarning(
integer
$num, string
$data...)
[line 970]
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 ]
handleEvent
void handleEvent(
integer
$num, mixed
$data)
[line 940]
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 ]
returnErrors
array &returnErrors(
)
[line 1045]
Get sorted array of all non-fatal errors in parsing/conversion
Parameters:
[ Top ]
returnLastError
[ Top ]
returnLastWarning
[ Top ]
returnWarnings
array &returnWarnings(
)
[line 1034]
Get sorted array of all warnings in parsing/conversion
Parameters:
[ Top ]