|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($questiondata) | |
| has_subparts () | |
| has_response_classes () | |
| has_actual_responses () | |
| analyse ($qubaids) | |
| load_cached ($quizstatisticsid) | |
| store_cached ($quizstatisticsid) | |
Data Fields | |
| $responses = array() | |
| $responseclasses = array() | |
Protected Member Functions | |
| add_data_from_one_attempt (question_attempt $qa) | |
Protected Attributes | |
| $questiondata | |
| $loaded = false | |
This class can store and compute the analysis of the responses to a particular question.
Definition at line 38 of file responseanalysis.php.
| __construct | ( | $ | questiondata | ) |
Create a new instance of this class for holding/computing the statistics for a particular question.
| object | $questiondata | the data from the database defining this question. |
Definition at line 66 of file responseanalysis.php.

| add_data_from_one_attempt | ( | question_attempt $ | qa | ) | [protected] |
Analyse the data from one question attempt.
| question_attempt | $qa | the data to analyse. |
Definition at line 142 of file responseanalysis.php.


| analyse | ( | $ | qubaids | ) |
Analyse all the response data for for all the specified attempts at this question.
| $qubaids | which attempts to consider. |
Definition at line 125 of file responseanalysis.php.

Definition at line 104 of file responseanalysis.php.

Definition at line 90 of file responseanalysis.php.

| has_subparts | ( | ) |
Definition at line 82 of file responseanalysis.php.

| load_cached | ( | $ | quizstatisticsid | ) |
Store the computed response analysis in the quiz_question_response_stats table.
| int | $quizstatisticsid | the cached quiz statistics to load the data corresponding to. |
Definition at line 175 of file responseanalysis.php.
| store_cached | ( | $ | quizstatisticsid | ) |
Store the computed response analysis in the quiz_question_response_stats table.
| int | $quizstatisticsid | the cached quiz statistics this correspons to. |
Definition at line 198 of file responseanalysis.php.
$loaded = false [protected] |
Definition at line 41 of file responseanalysis.php.
$questiondata [protected] |
Definition at line 40 of file responseanalysis.php.
| $responseclasses = array() |
Definition at line 59 of file responseanalysis.php.
Definition at line 53 of file responseanalysis.php.