Analysis for possible responses for parts of a question with multiple submitted responses.
More...
|
array[] | $possibleresponses = array() |
| See description above in constructor method.
|
|
array[] | $subparts = array() |
| A multidimensional array whose first index is variant no and second index is subpart id, array contents are of type analysis_for_subpart.
|
|
Analysis for possible responses for parts of a question with multiple submitted responses.
If the analysis was for a single try it would be handled by core_question::statistics::responses::analysis_for_question.
- Copyright
- 2014 The Open University
- Author
- James Pratt me@ja.nosp@m.miep.nosp@m..org
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ cache()
core_question\statistics\responses\analysis_for_question::cache |
( |
| $qubaids, |
|
|
| $whichtries, |
|
|
| $questionid, |
|
|
| $calculationtime = null ) |
|
inherited |
Save the analysis to the DB, first cleaning up any old ones.
- Parameters
-
qubaid_condition | $qubaids | which question usages have been analysed. |
string | $whichtries | which tries have been analysed? |
int | $questionid | which question. |
int | null | $calculationtime | time when the analysis was done. (Defaults to time()). |
◆ count_response_parts()
core_question\statistics\responses\analysis_for_question_all_tries::count_response_parts |
( |
| $variantno, |
|
|
| $responsepartsforeachtry ) |
◆ get_analysis_for_subpart()
core_question\statistics\responses\analysis_for_question::get_analysis_for_subpart |
( |
| $variantno, |
|
|
| $subpartid ) |
|
inherited |
Get the response counts etc.
for variant $variantno, question sub part $subpartid.
Or if there is no recorded analysis yet then initialise the data structure for that part of the analysis and return the initialised analysis objects.
- Parameters
-
int | $variantno | |
string | $subpartid | id for sub part. |
- Return values
-
◆ get_maximum_tries()
core_question\statistics\responses\analysis_for_question_all_tries::get_maximum_tries |
( |
| ) |
|
◆ get_subpart_ids()
core_question\statistics\responses\analysis_for_question::get_subpart_ids |
( |
| $variantno | ) |
|
|
inherited |
Unique ids for sub parts.
- Parameters
-
- Return values
-
◆ get_variant_nos()
core_question\statistics\responses\analysis_for_question::get_variant_nos |
( |
| ) |
|
|
inherited |
Variant nos found in this question's attempt data.
- Return values
-
◆ has_actual_responses()
core_question\statistics\responses\analysis_for_question::has_actual_responses |
( |
| ) |
|
|
inherited |
- Return values
-
bool | whether this analysis has a response class with more than one different actual response, or if the actual response is different from the model response. |
◆ has_multiple_response_classes()
core_question\statistics\responses\analysis_for_question::has_multiple_response_classes |
( |
| ) |
|
|
inherited |
Used to work out what kind of table is needed to display stats.
- Return values
-
bool | whether this question has (a subpart with) more than one response class. |
◆ has_multiple_tries_data()
core_question\statistics\responses\analysis_for_question_all_tries::has_multiple_tries_data |
( |
| ) |
|
◆ has_subparts()
core_question\statistics\responses\analysis_for_question::has_subparts |
( |
| ) |
|
|
inherited |
Used to work out what kind of table is needed to display stats.
- Return values
-
bool | whether this analysis has more than one subpart. |
◆ initialise_stats_for_variant()
core_question\statistics\responses\analysis_for_question::initialise_stats_for_variant |
( |
| $variantno | ) |
|
|
protectedinherited |
Initialise data structure for response analysis of one variant.
- Parameters
-
The documentation for this class was generated from the following file:
- question/classes/statistics/responses/analysis_for_question_all_tries.php