Representing the analysis of each of the sub parts of each variant of the question.
More...
Representing the analysis of each of the sub parts of each variant of the 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
◆ __construct()
core_question\statistics\responses\analysis_for_subpart::__construct |
( |
array | $responseclasses = null | ) |
|
◆ cache()
core_question\statistics\responses\analysis_for_subpart::cache |
( |
| $qubaids, |
|
|
| $whichtries, |
|
|
| $questionid, |
|
|
| $variantno, |
|
|
| $subpartid, |
|
|
| $calculationtime = null ) |
Cache analysis for sub part.
- Parameters
-
qubaid_condition | $qubaids | which question usages have been analysed. |
string | $whichtries | which tries have been analysed? |
int | $questionid | which question. |
int | $variantno | which variant. |
string | $subpartid | which sub part. |
int | null | $calculationtime | time when the analysis was done. (Defaults to time()). |
◆ count_response()
core_question\statistics\responses\analysis_for_subpart::count_response |
( |
| $subpart, |
|
|
| $try = 0 ) |
Count a part of a response.
- Parameters
-
◆ get_maximum_tries()
core_question\statistics\responses\analysis_for_subpart::get_maximum_tries |
( |
| ) |
|
What is the highest try number for this sub part?
- Return values
-
◆ get_response_class()
core_question\statistics\responses\analysis_for_subpart::get_response_class |
( |
| $classid | ) |
|
Get the instance of the class handling the analysis of $classid for this sub part.
- Parameters
-
string | $classid | id for response class. |
- Return values
-
◆ get_response_class_ids()
core_question\statistics\responses\analysis_for_subpart::get_response_class_ids |
( |
| ) |
|
Unique ids for response classes.
- Return values
-
◆ has_actual_responses()
core_question\statistics\responses\analysis_for_subpart::has_actual_responses |
( |
| ) |
|
Has actual responses different to the model response for this class?
- 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_subpart::has_multiple_response_classes |
( |
| ) |
|
Whether there is more than one response class for responses in this question sub part?
- Return values
-
The documentation for this class was generated from the following file:
- question/classes/statistics/responses/analysis_for_subpart.php