|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($quiz, $context, $qmsubselect, $qmfilter, $attemptsmode, $groupstudents, $students, $questions, $includecheckboxes, $reporturl, $displayoptions) | |
| build_table () | |
| col_sumgrades ($attempt) | |
| data_col ($slot, $field, $attempt) | |
| other_cols ($colname, $attempt) | |
Protected Member Functions | |
| requires_latest_steps_loaded () | |
| is_latest_step_column ($column) | |
| get_required_latest_state_fields ($slot, $alias) | |
This is a table subclass for displaying the quiz responses report.
Definition at line 36 of file responses_table.php.
| __construct | ( | $ | quiz, |
| $ | context, | ||
| $ | qmsubselect, | ||
| $ | qmfilter, | ||
| $ | attemptsmode, | ||
| $ | groupstudents, | ||
| $ | students, | ||
| $ | questions, | ||
| $ | includecheckboxes, | ||
| $ | reporturl, | ||
| $ | displayoptions | ||
| ) |
Definition at line 38 of file responses_table.php.
| build_table | ( | ) |
Take the data returned from the db_query and go through all the rows processing each col using either col_{columnname} method or other_cols method or if other_cols returns NULL then put the data straight into the table.
Reimplemented from table_sql.
Definition at line 46 of file responses_table.php.
| col_sumgrades | ( | $ | attempt | ) |
| data_col | ( | $ | slot, |
| $ | field, | ||
| $ | attempt | ||
| ) |
Definition at line 68 of file responses_table.php.


| get_required_latest_state_fields | ( | $ | slot, |
| $ | alias | ||
| ) | [protected] |
Get any fields that might be needed when sorting on date for a particular slot.
| int | $slot | the slot for the column we want. |
| string | $alias | the table alias for latest state information relating to that slot. |
Reimplemented from quiz_attempt_report_table.
Definition at line 126 of file responses_table.php.
| is_latest_step_column | ( | $ | column | ) | [protected] |
Is this a column that depends on joining to the latest state information? If so, return the corresponding slot. If not, return false.
| string | $column | a column name |
Reimplemented from quiz_attempt_report_table.
Definition at line 114 of file responses_table.php.
| other_cols | ( | $ | column, |
| $ | row | ||
| ) |
You can override this method in a child class. See the description of build_table which calls this method.
Reimplemented from flexible_table.
Definition at line 95 of file responses_table.php.

| requires_latest_steps_loaded | ( | ) | [protected] |
Reimplemented from quiz_attempt_report_table.
Definition at line 110 of file responses_table.php.