| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
The file defines a base class that can be used to build a report like the overview or responses report, that has one row per attempt.
| Copyright: | 2010 The Open University |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 326 lines (13 kb) |
| Included or required: | 0 times |
| Referenced: | 2 times |
| Includes or requires: | 0 files |
| init($mode, $formclass, $quiz, $cm, $course) X-Ref |
| Initialise various aspects of this report. param: string $mode param: string $formclass param: object $quiz param: object $cm param: object $course |
| get_base_url() X-Ref |
| Get the base URL for this report. return: moodle_url the URL. |
| load_relevant_students($cm, $course = null) X-Ref |
| Get information about which students to show in the report. param: object $cm the coures module. param: object $course the course settings. return: array with four elements: |
| add_user_columns($table, &$columns, &$headers) X-Ref |
| Add all the user-related columns to the $columns and $headers arrays. param: table_sql $table the table being constructed. param: array $columns the list of columns. Added to. param: array $headers the columns headings. Added to. |
| configure_user_columns($table) X-Ref |
| Set the display options for the user-related columns in the table. param: table_sql $table the table being constructed. |
| add_state_column(&$columns, &$headers) X-Ref |
| Add the state column to the $columns and $headers arrays. param: array $columns the list of columns. Added to. param: array $headers the columns headings. Added to. |
| add_time_columns(&$columns, &$headers) X-Ref |
| Add all the time-related columns to the $columns and $headers arrays. param: array $columns the list of columns. Added to. param: array $headers the columns headings. Added to. |
| add_grade_columns($quiz, $usercanseegrades, &$columns, &$headers, $includefeedback = true) X-Ref |
| Add all the grade and feedback columns, if applicable, to the $columns and $headers arrays. param: object $quiz the quiz settings. param: bool $usercanseegrades whether the user is allowed to see grades for this quiz. param: array $columns the list of columns. Added to. param: array $headers the columns headings. Added to. param: bool $includefeedback whether to include the feedbacktext columns |
| set_up_table_columns($table, $columns, $headers, $reporturl,mod_quiz_attempts_report_options $options, $collapsible) X-Ref |
| Set up the table. param: table_sql $table the table being constructed. param: array $columns the list of columns. param: array $headers the columns headings. param: moodle_url $reporturl the URL of this report. param: mod_quiz_attempts_report_options $options the display options. param: bool $collapsible whether to allow columns in the report to be collapsed. |
| process_actions($quiz, $cm, $currentgroup, $groupstudents, $allowed, $redirecturl) X-Ref |
| Process any submitted actions. param: object $quiz the quiz settings. param: object $cm the cm object for the quiz. param: int $currentgroup the currently selected group. param: array $groupstudents the students in the current group. param: array $allowed the users whose attempt this user is allowed to modify. param: moodle_url $redirecturl where to redircet to after a successful action. |
| delete_selected_attempts($quiz, $cm, $attemptids, $allowed) X-Ref |
| Delete the quiz attempts param: object $quiz the quiz settings. Attempts that don't belong to param: object $cm the course_module object. param: array $attemptids the list of attempt ids to delete. param: array $allowed This list of userids that are visible in the report. |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |