Analysis for possible responses for parts of a question.
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.
It is up to a question type designer to decide on how many parts their question has. See question_type::get_possible_responses() and sub classes where the sub parts and response classes are defined.
A sub part might represent a sub question embedded in the question for example in a matching question there are several sub parts. A numeric question with a unit might be divided into two sub parts for the purposes of response analysis or the question type designer might decide to treat the answer, both the numeric and unit part, as a whole for the purposes of response analysis.
- 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
◆ __construct()
core_question\statistics\responses\analysis_for_question::__construct |
( |
array |
$possiblereponses = null | ) |
|
Constructor method.
- Parameters
-
◆ cache()
core_question\statistics\responses\analysis_for_question::cache |
( |
|
$qubaids, |
|
|
|
$whichtries, |
|
|
|
$questionid |
|
) |
| |
- Parameters
-
qubaid_condition | $qubaids | which question usages have been analysed. |
string | $whichtries | which tries have been analysed? |
int | $questionid | which question. |
◆ count_response_parts()
core_question\statistics\responses\analysis_for_question::count_response_parts |
( |
|
$variantno, |
|
|
|
$responseparts |
|
) |
| |
◆ get_analysis_for_subpart()
core_question\statistics\responses\analysis_for_question::get_analysis_for_subpart |
( |
|
$variantno, |
|
|
|
$subpartid |
|
) |
| |
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::get_maximum_tries |
( |
| ) |
|
◆ get_subpart_ids()
core_question\statistics\responses\analysis_for_question::get_subpart_ids |
( |
|
$variantno | ) |
|
Unique ids for sub parts.
- Parameters
-
- Return values
-
◆ get_variant_nos()
core_question\statistics\responses\analysis_for_question::get_variant_nos |
( |
| ) |
|
Variant nos found in this question's attempt data.
- Return values
-
◆ has_actual_responses()
core_question\statistics\responses\analysis_for_question::has_actual_responses |
( |
| ) |
|
- 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 |
( |
| ) |
|
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::has_multiple_tries_data |
( |
| ) |
|
◆ has_subparts()
core_question\statistics\responses\analysis_for_question::has_subparts |
( |
| ) |
|
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 | ) |
|
|
protected |
Initialise data structure for response analysis of one variant.
- Parameters
-
The documentation for this class was generated from the following file: