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

Public Member Functions

 ExHtmlReporter ($showpasses)
 paintPass ($message)
 paintFail ($message)
 paintSkip ($message)
 paintError ($message)
 paintException ($exception)
 _paintPassFail ($passorfail, $message, $stacktrace=null, $debuginfo=null)
 paintNotice ($message)
 paintMessage ($message)
 paintHeader ($test_name)
 paintFooter ($test_name)
 _stripParameterFromUrl ($url, $param)
 get_string ($identifier, $a=NULL)
 _htmlEntities ($message)

Data Fields

 $showpasses
 $strrunonlyfolder
 $strrunonlyfile
 $strseparator
 $timestart

Detailed Description

Definition at line 40 of file ex_reporter.php.


Member Function Documentation

_htmlEntities ( message)

Character set adjusted entity conversion.

Parameters:
string$messagePlain text or Unicode message.
Returns:
string Browser readable message. protected

Reimplemented from HtmlReporter.

Definition at line 293 of file ex_reporter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_paintPassFail ( passorfail,
message,
stacktrace = null,
debuginfo = null 
)

Private method. Used by printPass/Fail/Skip/Error.

Definition at line 149 of file ex_reporter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

_stripParameterFromUrl ( url,
param 
)

Strip a specified parameter from the query string of a URL, if present. Adds a separator to the end of the URL, so that a new parameter can easily be appended. For example (assuming $param = 'frog'):

http://example.com/index.php -> http://example.com/index.php? http://example.com/index.php?frog=1 -> http://example.com/index.php? http://example.com/index.php?toad=1 -> http://example.com/index.php?toad=1& http://example.com/index.php?frog=1&toad=1 -> http://example.com/index.php?toad=1&

Parameters:
string$urlthe URL to modify.
string$paramthe parameter to strip from the URL, if present.
Returns:
string The modified URL.

Definition at line 276 of file ex_reporter.php.

Here is the caller graph for this function:

ExHtmlReporter ( showpasses)

Constructor.

Parameters:
bool$showpassesWhether this reporter should output anything for passes.

Definition at line 58 of file ex_reporter.php.

Here is the call graph for this function:

get_string ( identifier,
a = NULL 
)

Look up a lang string in the appropriate file.

Definition at line 289 of file ex_reporter.php.

Here is the caller graph for this function:

paintError ( message)

Called when an error (uncaught exception or PHP error) needs to be output.

Reimplemented from HtmlReporter.

Definition at line 99 of file ex_reporter.php.

Here is the call graph for this function:

paintException ( exception)

Called when a caught exception needs to be output.

Reimplemented from HtmlReporter.

Definition at line 108 of file ex_reporter.php.

Here is the call graph for this function:

paintFail ( message)

Called when a fail needs to be output.

Reimplemented from HtmlReporter.

Definition at line 81 of file ex_reporter.php.

Here is the call graph for this function:

paintFooter ( test_name)

Output anything that should appear below all the test output, e.g. summary information.

Reimplemented from HtmlReporter.

Definition at line 237 of file ex_reporter.php.

Here is the call graph for this function:

paintHeader ( test_name)

Output anything that should appear above all the test output.

Reimplemented from HtmlReporter.

Definition at line 229 of file ex_reporter.php.

paintMessage ( message)

Paints a simple supplementary message.

Parameters:
string$messageText to display.

Reimplemented from SimpleScorer.

Definition at line 212 of file ex_reporter.php.

Here is the call graph for this function:

Here is the caller graph for this function:

paintNotice ( message)

Called when a notice needs to be output.

Definition at line 204 of file ex_reporter.php.

Here is the call graph for this function:

paintPass ( message)

Called when a pass needs to be output.

Reimplemented from SimpleScorer.

Definition at line 70 of file ex_reporter.php.

Here is the call graph for this function:

paintSkip ( message)

Called when a skip needs to be output.

Reimplemented from HtmlReporter.

Definition at line 90 of file ex_reporter.php.

Here is the call graph for this function:


Field Documentation

$showpasses

Definition at line 43 of file ex_reporter.php.

$strrunonlyfile

Definition at line 47 of file ex_reporter.php.

$strrunonlyfolder

Definition at line 46 of file ex_reporter.php.

$strseparator

Definition at line 49 of file ex_reporter.php.

Definition at line 51 of file ex_reporter.php.


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