mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
29d5d0b40c
The code for reviewing an existing attempt is now separate in review.php and now has a log entry of it's own. The overview and regrade reports are now in separate subdirectories under the "report" directory. Each has a primary "report.php" file which implements the report as a class. These existing reports are very simple, but now more complex ones can easily be written. (I am about to do one).
27 lines
911 B
PHP
27 lines
911 B
PHP
<?PHP // $Id$
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
/// Default class for report plugins
|
|
///
|
|
/// Doesn't do anything on it's own -- it needs to be extended.
|
|
/// This class displays quiz reports. Because it is called from
|
|
/// within /mod/quiz/report.php you can assume that the page header
|
|
/// and footer are taken care of.
|
|
///
|
|
/// This file can refer to itself as report.php to pass variables
|
|
/// to itself - all these will also be globally available. You must
|
|
/// pass "id=$cm->id" or q=$quiz->id", and "mode=reportname".
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
// Included by ../report.php
|
|
|
|
class quiz_default_report {
|
|
|
|
function display($cm, $course, $quiz) { /// This function just displays the report
|
|
return true;
|
|
}
|
|
|
|
}
|
|
|
|
?>
|