diff --git a/classes/Report.php b/classes/Report.php index 4e139fc..b457722 100644 --- a/classes/Report.php +++ b/classes/Report.php @@ -580,6 +580,7 @@ public function generate_full_page( // Build HTML tree. $html = ""; $html .= $OUTPUT->header(); + $html .= \quiz_archiver\local\coversheet::get_coversheet($attemptid); $html .= self::generate($attemptid, $sections); $html .= $OUTPUT->footer(); diff --git a/classes/local/coversheet.php b/classes/local/coversheet.php new file mode 100644 index 0000000..52af564 --- /dev/null +++ b/classes/local/coversheet.php @@ -0,0 +1,51 @@ +. + +namespace quiz_archiver\local; + +/** + * Custom util functions + * + * @package quiz_archiver + * @copyright 2024, ISB Bayern + * @author Dr. Peter Mayer + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class coversheet { + + /** + * Collects all information needed for the coversheet and returns the resulting html. + * @param int $attemptid + * @return string + */ + public static function get_coversheet(int $attemptid):string { + $html = ""; + return $html; + } + + + + +// foreach (core_component::get_plugin_list('local') as $plugin => $plugindir) { +// if (get_string_manager()->string_exists('pluginname', 'local_' . $plugin)) { +// $strpluginname = get_string('pluginname', 'local_' . $plugin); +// } else { +// $strpluginname = $plugin; +// } +// $plugins[$plugin] = $strpluginname; +// } + +}