Class SimpleErrorQueue

Description

Singleton error queue used to record trapped errors.

Located in /libraries/pear/simpletest/errors.php (line 19)


	
			
Variable Summary
 mixed $_queue
Method Summary
 SimpleErrorQueue SimpleErrorQueue ()
 void add ($severity $severity, $message $message, $filename $filename, $line $line, $super_globals $super_globals)
 void clear ()
 False extract ()
 String getSeverityAsString ($severity $severity)
 Global &instance ()
 True isEmpty ()
Variables
mixed $_queue (line 20)
Methods
Constructor SimpleErrorQueue (line 26)

Starts with an empty queue.

  • access: public
SimpleErrorQueue SimpleErrorQueue ()
add (line 39)

Adds an error to the front of the queue.

  • access: public
void add ($severity $severity, $message $message, $filename $filename, $line $line, $super_globals $super_globals)
  • $severity $severity: PHP error code.
  • $message $message: Text of error.
  • $filename $filename: File error occoured in.
  • $line $line: Line number of error.
  • $super_globals $super_globals: Hash of PHP super global arrays.
clear (line 65)

Discards the contents of the error queue.

  • access: public
void clear ()
extract (line 54)

Pulls the earliest error from the queue.

  • return: if none, or a list of error information. Elements are: severity as the PHP error code, the error message, the file with the error, the line number and a list of PHP super global arrays.
  • access: public
False extract ()
getSeverityAsString (line 99)

Converst an error code into it's string representation.

  • return: version of error code.
  • static:
  • access: public
String getSeverityAsString ($severity $severity)
  • $severity $severity: PHP integer error code.
instance (line 83)

Global access to a single error queue.

  • return: error queue object.
  • static:
  • access: public
Global &instance ()
isEmpty (line 73)

Tests to see if the queue is empty.

  • return: if empty.
True isEmpty ()

Documentation generated on Fri, 24 Dec 2004 13:01:55 +0000 by phpDocumentor 1.3.0RC3