Moodle  2.2.1
http://www.collinsharper.com
ColorTextReporter Class Reference
Inheritance diagram for ColorTextReporter:
Collaboration diagram for ColorTextReporter:

Public Member Functions

 ColorTextReporter ()
 paintFooter ($test_name)
 _setColor ($color)
 _resetColor ()

Data Fields

 $_failColor = 41
 $_passColor = 42

Detailed Description

Definition at line 27 of file colortext_reporter.php.


Member Function Documentation

Resets the color back to normal.

protected

Definition at line 82 of file colortext_reporter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_setColor ( color)

Sets the terminal to an ANSI-standard $color

Parameters:
intprotected

Definition at line 72 of file colortext_reporter.php.

Here is the caller graph for this function:

Handle initialization

Parameters:
{@linkTextReporter}

Definition at line 36 of file colortext_reporter.php.

Here is the call graph for this function:

paintFooter ( test_name)

Capture the attempt to display the final test results and insert the ANSI-color codes in place.

Parameters:
string
See also:
TextReporter User interface

Reimplemented from TextReporter.

Definition at line 48 of file colortext_reporter.php.

Here is the call graph for this function:


Field Documentation

$_failColor = 41

Definition at line 28 of file colortext_reporter.php.

$_passColor = 42

Definition at line 29 of file colortext_reporter.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations