Differences Between: [Versions 400 and 402] [Versions 400 and 403]
This file defines the quiz responses table for showing first or all tries at a question.
Author: | Jamie Pratt <me@jamiep.org> |
Copyright: | 2014 The Open University |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 298 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
quiz_first_or_all_responses_table:: (16 methods):
field_from_extra_data()
load_extra_data()
get_question_attempt()
slot_state()
get_summary_after_try()
is_flagged()
slot_fraction()
is_last_try()
get_no_of_tries()
step_no_for_try()
col_checkbox()
col_email()
col_sumgrades()
col_state()
get_row_class()
make_review_link()
Class: quiz_first_or_all_responses_table - X-Ref
This is a table subclass for displaying the quiz responses report, showing first or all tries.field_from_extra_data($tablerow, $slot, $field) X-Ref |
The full question usage object for each try shown in report. |
load_extra_data() X-Ref |
No description |
get_question_attempt($questionusagesid, $slot) X-Ref |
Return the question attempt object. return: question_attempt param: int $questionusagesid param: int $slot |
slot_state($tablerow, $slot) X-Ref |
Find the state for $slot given after this try. return: question_state The question state after the attempt. param: object $tablerow row data param: int $slot Slot number. |
get_summary_after_try($tablerow, $slot) X-Ref |
Get the summary of the response after the try. return: string summary for the question after this try. param: object $tablerow row data param: int $slot Slot number. |
is_flagged($questionusageid, $slot) X-Ref |
Has this question usage been flagged? return: bool Has it been flagged? param: int $questionusageid Question usage id. param: int $slot Slot number |
slot_fraction($tablerow, $slot) X-Ref |
The grade for this slot after this try. return: float The fraction. param: object $tablerow attempt data from db. param: int $slot Slot number. |
is_last_try($tablerow, $slot, $tryno) X-Ref |
Is this the last try in the question attempt? return: bool Is it the last try? param: object $tablerow attempt data from db. param: int $slot Slot number param: int $tryno try no |
get_no_of_tries($tablerow, $slot) X-Ref |
How many tries were attempted at this question in this slot, during this usage? return: int the number of tries in the question attempt for slot $slot. param: object $tablerow attempt data from db. param: int $slot Slot number |
step_no_for_try($questionusageid, $slot, $tryno) X-Ref |
What is the step no this try was seen in? return: int the step no or zero if not found param: int $questionusageid The question usage id. param: int $slot Slot number param: int $tryno Try no |
col_checkbox($tablerow) X-Ref |
No description |
col_email($tablerow) X-Ref |
Cell value function for email column. This extracts the contents for any cell in the email column from the row data. return: string What to put in the cell for this column, for this row data. param: object $tablerow Row data. |
col_sumgrades($tablerow) X-Ref |
Cell value function for sumgrades column. This extracts the contents for any cell in the sumgrades column from the row data. return: string What to put in the cell for this column, for this row data. param: object $tablerow Row data. |
col_state($tablerow) X-Ref |
No description |
get_row_class($tablerow) X-Ref |
No description |
make_review_link($data, $tablerow, $slot) X-Ref |
No description |