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


Public Member Functions | |
| __construct ($quiz, $context, $qmsubselect, $qmfilter, $attemptsmode, $groupstudents, $students, $detailedmarks, $questions, $includecheckboxes, $reporturl, $displayoptions) | |
| build_table () | |
| col_sumgrades ($attempt) | |
| other_cols ($colname, $attempt) | |
| col_regraded ($attempt) | |
| query_db ($pagesize, $useinitialsbar=true) | |
Protected Member Functions | |
| add_average_row ($label, $users) | |
| format_average_grade_for_questions ($gradeaverages) | |
| format_average ($record, $question=false) | |
| submit_buttons () | |
| requires_latest_steps_loaded () | |
| is_latest_step_column ($column) | |
| get_required_latest_state_fields ($slot, $alias) | |
| get_regraded_questions () | |
Protected Attributes | |
| $regradedqs = array() | |
This is a table subclass for displaying the quiz grades report.
Definition at line 36 of file overview_table.php.
| __construct | ( | $ | quiz, |
| $ | context, | ||
| $ | qmsubselect, | ||
| $ | qmfilter, | ||
| $ | attemptsmode, | ||
| $ | groupstudents, | ||
| $ | students, | ||
| $ | detailedmarks, | ||
| $ | questions, | ||
| $ | includecheckboxes, | ||
| $ | reporturl, | ||
| $ | displayoptions | ||
| ) |
Reimplemented from quiz_attempt_report_table.
Definition at line 40 of file overview_table.php.
| add_average_row | ( | $ | label, |
| $ | users | ||
| ) | [protected] |
Add an average grade over the attempts of a set of users.
| string | $label | the title ot use for this row. |
| array | $users | the users to average over. |
Definition at line 76 of file overview_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 49 of file overview_table.php.

| col_regraded | ( | $ | attempt | ) |
Definition at line 262 of file overview_table.php.
| col_sumgrades | ( | $ | attempt | ) |
| format_average | ( | $ | record, |
| $ | question = false |
||
| ) | [protected] |
Format an entry in an average row.
| object | $record | with fields grade and numaveraged |
Definition at line 143 of file overview_table.php.


| format_average_grade_for_questions | ( | $ | gradeaverages | ) | [protected] |
Helper userd by add_average_row().
| array | $gradeaverages | the raw grades. |
Definition at line 114 of file overview_table.php.


| get_regraded_questions | ( | ) | [protected] |
Get all the questions in all the attempts being displayed that need regrading.
Definition at line 299 of file overview_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 283 of file overview_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 276 of file overview_table.php.
| other_cols | ( | $ | colname, |
| $ | attempt | ||
| ) |
| string | $colname | the name of the column. |
| object | $attempt | the row of data - see the SQL in display() in mod/quiz/report/overview/report.php to see what fields are present, and what they are called. |
Reimplemented from flexible_table.
Definition at line 216 of file overview_table.php.

Query the db. Store results in the table object for use by build_table.
| int | $pagesize | size of page for paginated displayed table. |
| bool | $useinitialsbar | do you want to use the initials bar. Bar will only be used if there is a fullname column defined for the table. |
Reimplemented from quiz_attempt_report_table.
Definition at line 287 of file overview_table.php.

| requires_latest_steps_loaded | ( | ) | [protected] |
Reimplemented from quiz_attempt_report_table.
Definition at line 272 of file overview_table.php.
| submit_buttons | ( | ) | [protected] |
Output any submit buttons required by the $this->includecheckboxes form.
Reimplemented from quiz_attempt_report_table.
Definition at line 165 of file overview_table.php.

$regradedqs = array() [protected] |
Definition at line 38 of file overview_table.php.