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

Class: ErrorTracker

Source Location: /PhpDocumentor-1.3.1/phpDocumentor/Errors.inc

Class Overview


contains all the errors/warnings


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 595]
contains all the errors/warnings


[ Top ]


Class Variables

$curfile =  ''

[line 610]


Type:   string


[ Top ]

$errors = array()

[line 601]

array of RecordErrors

Type:   array


[ Top ]

$lasterror =  false

[line 620]

index in $errors of last error triggered

Type:   integer|false


[ Top ]

$lastwarning =  false

[line 626]

index in $warnings of last warning triggered

Type:   integer|false


[ Top ]

$linenum =  0

[line 614]


Type:   integer


[ Top ]

$warnings = array()

[line 606]

array of RecordWarnings

Type:   array


[ Top ]



Method Detail

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 Mon, 11 Mar 2019 14:47:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.