2004-09-12 17:34:35 +00:00
|
|
|
<?php // $Id$
|
2003-07-24 05:18:00 +00:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
/// 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;
|
|
|
|
}
|
|
|
|
|
2005-06-04 22:14:08 +00:00
|
|
|
function print_header_and_tabs($cm, $course, $quiz, $reportmode="overview"){
|
2005-05-23 07:25:33 +00:00
|
|
|
/// Define some strings
|
|
|
|
$strquizzes = get_string("modulenameplural", "quiz");
|
|
|
|
$strquiz = get_string("modulename", "quiz");
|
|
|
|
/// Print the page header
|
|
|
|
print_header_simple(format_string($quiz->name), "",
|
|
|
|
"<a href=\"index.php?id=$course->id\">$strquizzes</a>
|
|
|
|
-> ".format_string($quiz->name),
|
|
|
|
"", "", true, update_module_button($cm->id, $course->id, $strquiz), navmenu($course, $cm));
|
|
|
|
/// Print the tabs
|
|
|
|
$currenttab = 'reports';
|
|
|
|
$mode = $reportmode;
|
|
|
|
include('tabs.php');
|
|
|
|
}
|
2003-07-24 05:18:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|