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


Protected Member Functions | |
| should_show_grades ($quiz) | |
| load_relevant_students ($cm, $course=null) | |
| validate_common_options (&$attemptsmode, &$pagesize, $course, $currentgroup) | |
| add_user_columns ($table, &$columns, &$headers) | |
| configure_user_columns ($table) | |
| add_time_columns (&$columns, &$headers) | |
| add_grade_columns ($quiz, &$columns, &$headers, $includefeedback=true) | |
| set_up_table_columns ($table, $columns, $headers, $reporturl, $displayoptions, $collapsible) | |
| delete_selected_attempts ($quiz, $cm, $attemptids, $allowed) | |
Protected Attributes | |
| $context | |
| $showgrades = null | |
Base class for quiz reports that are basically a table with one row for each attempt.
Definition at line 40 of file attemptsreport.php.
| add_grade_columns | ( | $ | quiz, |
| &$ | columns, | ||
| &$ | headers, | ||
| $ | includefeedback = true |
||
| ) | [protected] |
Add all the grade and feedback columns, if applicable, to the $columns and $headers arrays.
| object | $quiz | the quiz settings. |
| array | $columns | the list of columns. Added to. |
| array | $headers | the columns headings. Added to. |
| bool | $includefeedback | whether to include the feedbacktext columns |
Definition at line 222 of file attemptsreport.php.


| add_time_columns | ( | &$ | columns, |
| &$ | headers | ||
| ) | [protected] |
Add all the time-related columns to the $columns and $headers arrays.
| array | $columns | the list of columns. Added to. |
| array | $headers | the columns headings. Added to. |
Definition at line 203 of file attemptsreport.php.

| add_user_columns | ( | $ | table, |
| &$ | columns, | ||
| &$ | headers | ||
| ) | [protected] |
Add all the user-related columns to the $columns and $headers arrays.
| table_sql | $table | the table being constructed. |
| array | $columns | the list of columns. Added to. |
| array | $headers | the columns headings. Added to. |
Definition at line 146 of file attemptsreport.php.


| configure_user_columns | ( | $ | table | ) | [protected] |
Set the display options for the user-related columns in the table.
| table_sql | $table | the table being constructed. |
Definition at line 187 of file attemptsreport.php.

| delete_selected_attempts | ( | $ | quiz, |
| $ | cm, | ||
| $ | attemptids, | ||
| $ | allowed | ||
| ) | [protected] |
Delete the quiz attempts
| object | $quiz | the quiz settings. Attempts that don't belong to this quiz are not deleted. |
| object | $cm | the course_module object. |
| array | $attemptids | the list of attempt ids to delete. |
| array | $allowed | This list of userids that are visible in the report. Users can only delete attempts that they are allowed to see in the report. Empty means all users. |
Definition at line 272 of file attemptsreport.php.


| load_relevant_students | ( | $ | cm, |
| $ | course = null |
||
| ) | [protected] |
Get information about which students to show in the report.
| object | $cm | the coures module. |
| object | $course | the course settings. |
Definition at line 83 of file attemptsreport.php.


| set_up_table_columns | ( | $ | table, |
| $ | columns, | ||
| $ | headers, | ||
| $ | reporturl, | ||
| $ | displayoptions, | ||
| $ | collapsible | ||
| ) | [protected] |
Set up the table.
| table_sql | $table | the table being constructed. |
| array | $columns | the list of columns. |
| array | $headers | the columns headings. |
| moodle_url | $reporturl | the URL of this report. |
| array | $displayoptions | the display options. |
| bool | $collapsible | whether to allow columns in the report to be collapsed. |
Definition at line 244 of file attemptsreport.php.


| should_show_grades | ( | $ | quiz | ) | [protected] |
Should the grades be displayed in this report. That depends on the quiz display options, and whether the quiz is graded.
| object | $quiz | the quiz settings. |
Definition at line 53 of file attemptsreport.php.


| validate_common_options | ( | &$ | attemptsmode, |
| &$ | pagesize, | ||
| $ | course, | ||
| $ | currentgroup | ||
| ) | [protected] |
Alters $attemptsmode and $pagesize if the current values are inappropriate.
| int | $attemptsmode | what sort of attempts to display (may be updated) |
| int | $pagesize | number of records to display per page (may be updated) |
| object | $course | the course settings. |
| int | $currentgroup | the currently selected group. 0 for none. |
Definition at line 121 of file attemptsreport.php.

$context [protected] |
Definition at line 42 of file attemptsreport.php.
$showgrades = null [protected] |
Definition at line 45 of file attemptsreport.php.