Differences Between: [Versions 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 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: | 300 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. param: int $questionusagesid param: int $slot return: question_attempt |
slot_state($tablerow, $slot) X-Ref |
Find the state for $slot given after this try. param: stdClass $tablerow row data param: int $slot Slot number. return: question_state The question state after the attempt. |
get_summary_after_try($tablerow, $slot) X-Ref |
Get the summary of the response after the try. param: stdClass $tablerow row data param: int $slot Slot number. return: string summary for the question after this try. |
is_flagged($questionusageid, $slot) X-Ref |
Has this question usage been flagged? param: int $questionusageid Question usage id. param: int $slot Slot number return: bool Has it been flagged? |
slot_fraction($tablerow, $slot) X-Ref |
The grade for this slot after this try. param: stdClass $tablerow attempt data from db. param: int $slot Slot number. return: float The fraction. |
is_last_try($tablerow, $slot, $tryno) X-Ref |
Is this the last try in the question attempt? param: stdClass $tablerow attempt data from db. param: int $slot Slot number param: int $tryno try no return: bool Is it the last try? |
get_no_of_tries($tablerow, $slot) X-Ref |
How many tries were attempted at this question in this slot, during this usage? param: stdClass $tablerow attempt data from db. param: int $slot Slot number return: int the number of tries in the question attempt for slot $slot. |
step_no_for_try($questionusageid, $slot, $tryno) X-Ref |
What is the step no this try was seen in? param: int $questionusageid The question usage id. param: int $slot Slot number param: int $tryno Try no return: int the step no or zero if not found |
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. param: stdClass $tablerow Row data. return: string What to put in the cell for this column, for this 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. param: stdClass $tablerow Row data. return: string What to put in the cell for this column, for this 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 |