Class: ErrorTracker

Source Location: /phpDocumentor/Errors.inc

Class Overview [line 894]


contains all the errors/warnings

Author(s):

Version:

  • Release: @VER@

Copyright:

  • 2001-2008 Gregory Beaver

Variables

Constants

Methods


Inherited Variables

Inherited Constants

Inherited Methods



Class Details

contains all the errors/warnings

Tags:

[ Top ]


Class Variables

$curfile =  ''

[line 909]

Type: string

Overrides:

[ Top ]

$errors = array()

[line 900]

array of RecordErrors

Type: array

Overrides:

[ Top ]

$lasterror =  false

[line 919]

index in $errors of last error triggered

Type: integer|false

Overrides:

[ Top ]

$lastwarning =  false

[line 925]

index in $warnings of last warning triggered

Type: integer|false

Overrides:

[ Top ]

$linenum =  0

[line 913]

Type: integer

Overrides:

[ Top ]

$warnings = array()

[line 905]

array of RecordWarnings

Type: array

Overrides:

[ 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:

[ Top ]

returnErrors

array &returnErrors( )

[line 1045]

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

Parameters:

[ Top ]

returnLastError

string returnLastError( )

[line 1077]

Get the error message of the last error

Parameters:

[ Top ]

returnLastWarning

string returnLastWarning( )

[line 1087]

Get the warning message of the last warning

Parameters:

[ Top ]

returnWarnings

array &returnWarnings( )

[line 1034]

Get sorted array of all warnings in parsing/conversion

Parameters:

[ Top ]


Class Constants


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