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


Base class for the table used by quiz_attempt_reports.
Definition at line 298 of file attemptsreport.php.
| __construct | ( | $ | uniqueid, |
| $ | quiz, | ||
| $ | context, | ||
| $ | qmsubselect, | ||
| $ | qmfilter, | ||
| $ | attemptsmode, | ||
| $ | groupstudents, | ||
| $ | students, | ||
| $ | questions, | ||
| $ | includecheckboxes, | ||
| $ | reporturl, | ||
| $ | displayoptions | ||
| ) |
Reimplemented in quiz_report_overview_table.
Definition at line 323 of file attemptsreport.php.
| add_latest_state_join | ( | $ | slot | ) | [protected] |
Add the information about the latest state of the question with slot $slot to the query.
The extra information is added as a join to a 'table' with alias qa$slot, with columns that are a union of the columns of the question_attempts and question_attempts_states tables.
| int | $slot | the question to add information for. |
Definition at line 622 of file attemptsreport.php.


| base_sql | ( | $ | reportstudents | ) |
Contruct all the parts of the main database query.
| array | $reportstudents | list if userids of users to include in the report. |
Definition at line 535 of file attemptsreport.php.


| col_checkbox | ( | $ | attempt | ) |
Definition at line 340 of file attemptsreport.php.
| col_duration | ( | $ | attempt | ) |
| col_feedbacktext | ( | $ | attempt | ) |
| col_fullname | ( | $ | row | ) |
Fullname is treated as a special columname in tablelib and should always be treated the same as the fullname of a user. $this->useridfield if the userid field is not expected to be id then you need to override $this->useridfield to point at the correct field for the user id.
Reimplemented from flexible_table.
Definition at line 360 of file attemptsreport.php.

| col_picture | ( | $ | attempt | ) |
Definition at line 348 of file attemptsreport.php.
| col_timefinish | ( | $ | attempt | ) |
| col_timestart | ( | $ | attempt | ) |
| get_qubaids_condition | ( | ) | [protected] |
Get an appropriate qubaid_condition for loading more data about the attempts we are displaying.
Definition at line 652 of file attemptsreport.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 in quiz_report_overview_table, and quiz_report_responses_table.
Definition at line 525 of file attemptsreport.php.

| get_row_class | ( | $ | row | ) |
Get any extra classes names to add to this row in the HTML.
| $row | array the data for this row. |
Reimplemented from table_sql.
Definition at line 413 of file attemptsreport.php.
| get_sort_columns | ( | ) |
Get the columns to sort by, in the form required by construct_order_by().
Reimplemented from flexible_table.
Definition at line 692 of file attemptsreport.php.

| icon_for_fraction | ( | $ | fraction | ) | [protected] |
Return an appropriate icon (green tick, red cross, etc.) for a grade.
| float | $fraction | grade on a scale 0..1. |
Definition at line 464 of file attemptsreport.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 in quiz_report_overview_table, and quiz_report_responses_table.
Definition at line 516 of file attemptsreport.php.

| load_question_latest_steps | ( | qubaid_condition $ | qubaids | ) | [protected] |
Load information about the latest state of selected questions in selected attempts.
The results are returned as an two dimensional array $qubaid => $slot => $dataobject
| qubaid_condition | $qubaids | used to restrict which usages are included in the query. See qubaid_condition. |
| array | $slots | A list of slots for the questions you want to konw about. |
Definition at line 490 of file attemptsreport.php.

| make_review_link | ( | $ | data, |
| $ | attempt, | ||
| $ | slot | ||
| ) |
Make a link to review an individual question in a popup window.
| string | $data | HTML fragment. The text to make into the link. |
| object | $attempt | data for the row of the table being output. |
| int | $slot | the number used to identify this question within this usage. |
Definition at line 428 of file attemptsreport.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 table_sql.
Reimplemented in quiz_report_overview_table.
Definition at line 674 of file attemptsreport.php.

| requires_latest_steps_loaded | ( | ) | [protected] |
Reimplemented in quiz_report_overview_table, and quiz_report_responses_table.
Definition at line 506 of file attemptsreport.php.

| submit_buttons | ( | ) | [protected] |
Output any submit buttons required by the $this->includecheckboxes form.
Reimplemented in quiz_report_overview_table.
Definition at line 736 of file attemptsreport.php.


| wrap_html_finish | ( | ) |
Hook that can be overridden in child classes to wrap a table in a form for example. Called only when there is data to display and not downloading.
Reimplemented from flexible_table.
Definition at line 715 of file attemptsreport.php.

| wrap_html_start | ( | ) |
Hook that can be overridden in child classes to wrap a table in a form for example. Called only when there is data to display and not downloading.
Reimplemented from flexible_table.
Definition at line 700 of file attemptsreport.php.

$attemptsmode [protected] |
Definition at line 317 of file attemptsreport.php.
$context [protected] |
Definition at line 314 of file attemptsreport.php.
$displayoptions [protected] |
Definition at line 305 of file attemptsreport.php.
$groupstudents [protected] |
Definition at line 318 of file attemptsreport.php.
$includecheckboxes [protected] |
Definition at line 321 of file attemptsreport.php.
$lateststeps = null [protected] |
Definition at line 311 of file attemptsreport.php.
$qmfilter [protected] |
Definition at line 316 of file attemptsreport.php.
$qmsubselect [protected] |
Definition at line 315 of file attemptsreport.php.
$questions [protected] |
Definition at line 320 of file attemptsreport.php.
$quiz [protected] |
Definition at line 313 of file attemptsreport.php.
$reporturl [protected] |
Definition at line 302 of file attemptsreport.php.
$students [protected] |
Definition at line 319 of file attemptsreport.php.
| $useridfield = 'userid' |
Reimplemented from flexible_table.
Definition at line 299 of file attemptsreport.php.