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

Class: ErrorTracker

Source Location: /PhpDocumentor-1.2.0beta2/phpDocumentor/Errors.inc

Class Overview


contains all the errors/warnings


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 499]
contains all the errors/warnings


[ Top ]


Class Variables

$curfile =  ''

[line 514]


Type:   string


[ Top ]

$errors = array()

[line 505]

array of RecordErrors

Type:   array


[ Top ]

$lasterror =  false

[line 520]


Type:   mixed


[ Top ]

$lastwarning =  false

[line 522]


Type:   mixed


[ Top ]

$linenum =  0

[line 518]


Type:   integer


[ Top ]

$warnings = array()

[line 510]

array of RecordWarnings

Type:   array


[ Top ]



Method Detail

addError   [line 572]

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 591]

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 ]

addException   [line 605]

void addException( mixed $num, mixed $file, mixed $line, [mixed $data = false])


[ Top ]

addWarning   [line 553]

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 ]

errorsort   [line 622]

void errorsort( mixed $a, mixed $b)


[ Top ]

handleEvent   [line 529]

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 616]

void &returnErrors( )


[ Top ]

returnLastError   [line 635]

void returnLastError( )


[ Top ]

returnLastWarning   [line 640]

void returnLastWarning( )


[ Top ]

returnWarnings   [line 610]

void &returnWarnings( )


[ Top ]


Documentation generated on Fri, 30 Apr 2004 22:09:42 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.