plugin->test_constructor_gatekeeper(); $id = get_input('id'); if ($id) { $assessment = $TeKe->plugin->loadType("assessment", $id); //$filename = $assessment->getTitle() . "_questions_stats.csv"; header("Content-type: text/csv;charset=utf-8"); header("Content-Disposition: attachment; filename=questions_stats.csv"); //readfile($filename); //unlink($filename); $file_content = $assessment->getAssessmentStatistics(); echo $file_content; exit; } else { $TeKe->add_system_message(_("No action")); } //forward($forward_to); ?>