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


Public Member Functions | |
| __construct ($qid) | |
| setup ($reporturl, $questiondata, quiz_statistics_response_analyser $responesstats) | |
Protected Member Functions | |
| format_percentage ($fraction) | |
| col_fraction ($response) | |
| col_frequency ($response) | |
Protected Attributes | |
| $questiondata | |
This table shows statistics about a particular question.
Lists the responses that students made to this question, with frequency counts.
The responses may be grouped, either by subpart of the question, or by the answer they match.
Definition at line 43 of file statistics_question_table.php.
| __construct | ( | $ | qid | ) |
Constructor.
| $qid | the id of the particular question whose statistics are being displayed. |
Reimplemented from flexible_table.
Definition at line 52 of file statistics_question_table.php.
| col_fraction | ( | $ | response | ) | [protected] |
The mark fraction that this response earns.
| object | $response | containst the data to display. |
Definition at line 127 of file statistics_question_table.php.

| col_frequency | ( | $ | response | ) | [protected] |
The frequency with which this response was given.
| object | $response | containst the data to display. |
Definition at line 140 of file statistics_question_table.php.

| format_percentage | ( | $ | fraction | ) | [protected] |
Definition at line 118 of file statistics_question_table.php.


| setup | ( | $ | reporturl, |
| $ | questiondata, | ||
| quiz_statistics_response_analyser $ | responesstats | ||
| ) |
Setup the columns and headers and other properties of the table and then call flexible_table::setup() method.
| moodle_url | $reporturl | the URL to redisplay this report. |
| object | $question | a question with a _stats field |
| bool | $hassubqs |
Definition at line 64 of file statistics_question_table.php.

$questiondata [protected] |
Definition at line 45 of file statistics_question_table.php.