The leafs of the analysis data structure.
More...
|
| __construct ($response, $fraction) |
|
| cache ($qubaids, $whichtries, $questionid, $variantno, $subpartid, $responseclassid, $calculationtime=null) |
| Cache analysis for class.
|
|
| data_for_question_response_table ($partid, $modelresponse) |
| Returns an object with a property for each column of the question response analysis table.
|
|
| get_maximum_tries () |
| What is the highest try number that this response has been seen?
|
|
| increment_count ($try=0) |
| Used to count the occurrences of response sub parts.
|
|
| set_count ($try, $count) |
| Used to set the count of occurrences of response sub parts, when loading count from cache.
|
|
|
float | $fraction |
| grade for this response, normally between 0 and 1.
|
|
string | $response |
| the response as it will be displayed in report.
|
|
int | $totalcount = 0 |
| total count of tries with this response.
|
|
int[] | $trycount = array() |
| count per try for this response.
|
|
The leafs of the analysis data structure.
- 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_actual_response::__construct |
( |
| $response, |
|
|
| $fraction ) |
- Parameters
-
string | $response | |
float | $fraction | |
◆ cache()
core_question\statistics\responses\analysis_for_actual_response::cache |
( |
| $qubaids, |
|
|
| $whichtries, |
|
|
| $questionid, |
|
|
| $variantno, |
|
|
| $subpartid, |
|
|
| $responseclassid, |
|
|
| $calculationtime = null ) |
Cache analysis for class.
- 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 is this actual response in? |
string | $responseclassid | which response class is this actual response in? |
int | null | $calculationtime | time when the analysis was done. (Defaults to time()). |
◆ data_for_question_response_table()
core_question\statistics\responses\analysis_for_actual_response::data_for_question_response_table |
( |
| $partid, |
|
|
| $modelresponse ) |
Returns an object with a property for each column of the question response analysis table.
- Parameters
-
string | $partid | |
string | $modelresponse | |
- Return values
-
◆ get_maximum_tries()
core_question\statistics\responses\analysis_for_actual_response::get_maximum_tries |
( |
| ) |
|
What is the highest try number that this response has been seen?
- Return values
-
◆ increment_count()
core_question\statistics\responses\analysis_for_actual_response::increment_count |
( |
| $try = 0 | ) |
|
Used to count the occurrences of response sub parts.
- Parameters
-
int | $try | the try number, or 0 if only keeping one count, not a count for each try. |
◆ set_count()
core_question\statistics\responses\analysis_for_actual_response::set_count |
( |
| $try, |
|
|
| $count ) |
Used to set the count of occurrences of response sub parts, when loading count from cache.
- Parameters
-
int | $try | the try number, or 0 if only keeping one count, not a count for each try. |
int | $count | |
The documentation for this class was generated from the following file:
- question/classes/statistics/responses/analysis_for_actual_response.php