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

Class: ErrorTracker

Source Location: /phpDocumentor/Errors.inc

Class ErrorTracker

Property Summary
string   $curfile  
array   $errors   array of RecordErrors
integer|false   $lasterror   index in $errors of last error triggered
integer|false   $lastwarning   index in $warnings of last warning triggered
integer   $linenum  
array   $warnings   array of RecordWarnings

[ Top ]
Method Summary
void   addError()   add a new error to the $errors array
void   addErrorReturn()   add a new error to the $errors array and returns the error string
void   addWarning()   add a new warning to the $warnings array
void   handleEvent()   This function subscribes to two events in the Parser in order to keep track of line number information and file name.
array   &returnErrors()   Get sorted array of all non-fatal errors in parsing/conversion
string   returnLastError()   Get the error message of the last error
string   returnLastWarning()   Get the warning message of the last warning
array   &returnWarnings()   Get sorted array of all warnings in parsing/conversion

[ Top ]
Properties
string   $curfile = '' [line 610]

[ Top ]
array   $errors = array() [line 601]

array of RecordErrors


[ Top ]
integer|false   $lasterror = false [line 620]

index in $errors of last error triggered


[ Top ]
integer|false   $lastwarning = false [line 626]

index in $warnings of last warning triggered


[ Top ]
integer   $linenum = 0 [line 614]

[ Top ]
array   $warnings = array() [line 606]

array of RecordWarnings


[ Top ]
Methods
addError  [line 676]

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

add a new error to the $errors array

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  [line 695]

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

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

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  [line 657]

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

add a new warning to the $warnings array

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  [line 633]

  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 ]
returnErrors  [line 723]

  array &returnErrors( )

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



[ Top ]
returnLastError  [line 751]

  string returnLastError( )

Get the error message of the last error



[ Top ]
returnLastWarning  [line 760]

  string returnLastWarning( )

Get the warning message of the last warning



[ Top ]
returnWarnings  [line 713]

  array &returnWarnings( )

Get sorted array of all warnings in parsing/conversion



[ Top ]

Documentation generated on Tue, 24 Oct 2006 09:22:26 -0500 by phpDocumentor 1.3.1