|
Moodle
2.2.1
http://www.collinsharper.com
|


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 | |
Definition at line 40 of file ex_reporter.php.
| _htmlEntities | ( | $ | message | ) |
Character set adjusted entity conversion.
| string | $message | Plain text or Unicode message. |
Reimplemented from HtmlReporter.
Definition at line 293 of file ex_reporter.php.


| _paintPassFail | ( | $ | passorfail, |
| $ | message, | ||
| $ | stacktrace = null, |
||
| $ | debuginfo = null |
||
| ) |
Private method. Used by printPass/Fail/Skip/Error.
Definition at line 149 of file ex_reporter.php.


| _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&
| string | $url | the URL to modify. |
| string | $param | the parameter to strip from the URL, if present. |
Definition at line 276 of file ex_reporter.php.

| ExHtmlReporter | ( | $ | showpasses | ) |
Constructor.
| bool | $showpasses | Whether this reporter should output anything for passes. |
Definition at line 58 of file ex_reporter.php.

| get_string | ( | $ | identifier, |
| $ | a = NULL |
||
| ) |
Look up a lang string in the appropriate file.
Definition at line 289 of file ex_reporter.php.

| 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.

| paintException | ( | $ | exception | ) |
Called when a caught exception needs to be output.
Reimplemented from HtmlReporter.
Definition at line 108 of file ex_reporter.php.

| paintFail | ( | $ | message | ) |
Called when a fail needs to be output.
Reimplemented from HtmlReporter.
Definition at line 81 of file ex_reporter.php.

| 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.

| 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.
| string | $message | Text to display. |
Reimplemented from SimpleScorer.
Definition at line 212 of file ex_reporter.php.


| paintNotice | ( | $ | message | ) |
Called when a notice needs to be output.
Definition at line 204 of file ex_reporter.php.

| paintPass | ( | $ | message | ) |
Called when a pass needs to be output.
Reimplemented from SimpleScorer.
Definition at line 70 of file ex_reporter.php.

| paintSkip | ( | $ | message | ) |
Called when a skip needs to be output.
Reimplemented from HtmlReporter.
Definition at line 90 of file ex_reporter.php.

| $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.