Differences Between: [Versions 310 and 402] [Versions 310 and 403]
This file defines the quiz responses table for showing last try at question.
Copyright: | 2008 Jean-Michel Vedrine |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 158 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
quiz_last_responses_table:: (9 methods):
__construct()
build_table()
col_sumgrades()
data_col()
field_from_extra_data()
other_cols()
requires_extra_data()
is_latest_step_column()
get_required_latest_state_fields()
Class: quiz_last_responses_table - X-Ref
This is a table subclass for displaying the quiz responses report.__construct($quiz, $context, $qmsubselect, quiz_responses_options $options,\core\dml\sql_join $groupstudentsjoins, \core\dml\sql_join $studentsjoins, $questions, $reporturl) X-Ref |
Constructor param: object $quiz param: context $context param: string $qmsubselect param: quiz_responses_options $options param: \core\dml\sql_join $groupstudentsjoins param: \core\dml\sql_join $studentsjoins param: array $questions param: moodle_url $reporturl |
build_table() X-Ref |
No description |
col_sumgrades($attempt) X-Ref |
No description |
data_col($slot, $field, $attempt) X-Ref |
No description |
field_from_extra_data($attempt, $slot, $field) X-Ref |
Column text from the extra data loaded in load_extra_data(), before html formatting etc. param: object $attempt param: int $slot param: string $field return: string |
other_cols($colname, $attempt) X-Ref |
No description |
requires_extra_data() X-Ref |
No description |
is_latest_step_column($column) X-Ref |
No description |
get_required_latest_state_fields($slot, $alias) X-Ref |
Get any fields that might be needed when sorting on date for a particular slot. param: int $slot the slot for the column we want. param: string $alias the table alias for latest state information relating to that slot. return: string sql fragment to alias fields. |