Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Functions
reportlib.php File Reference

Helper functions for the quiz reports. More...

Functions

 quiz_has_questions ($quizid)
 Are there any questions in this quiz? More...
 
 quiz_no_questions_message ($quiz, $cm, $context)
 Generate a message saying that this quiz has no questions, with a button to go to the edit page, if the user has the right capability. More...
 
 quiz_report_can_filter_only_graded ($quiz)
 
 quiz_report_default_report ($context)
 Get the default report for the current user. More...
 
 quiz_report_download_filename ($report, $courseshortname, $quizname)
 Create a filename for use when downloading data from a quiz report. More...
 
 quiz_report_feedback_for_grade ($grade, $quizid, $context)
 Get the feedback text for a grade on this quiz. More...
 
 quiz_report_get_significant_questions ($quiz)
 Get the slots of real questions (not descriptions) in this quiz, in order. More...
 
 quiz_report_grade_bands ($bandwidth, $bands, $quizid, core\dml\sql_join $usersjoins=null)
 Get the number of students whose score was in a particular band for this quiz. More...
 
 quiz_report_grade_method_sql ($grademethod, $quizattemptsalias='quiza')
 Given a quiz grading method return sql to test if this is an attempt that will be contribute towards the grade of the user. More...
 
 quiz_report_highlighting_grading_method ($quiz, $qmsubselect, $qmfilter)
 
 quiz_report_index_by_keys ($datum, $keys, $keysunique=true)
 Takes an array of objects and constructs a multidimensional array keyed by the keys it finds on the object. More...
 
 quiz_report_list ($context)
 Returns an array of reports to which the current user has access to. More...
 
 quiz_report_qm_filter_select ($quiz, $quizattemptsalias='quiza')
 This is a wrapper for } that takes the whole quiz object instead of just the grading method * as a param. More...
 
 quiz_report_scale_summarks_as_percentage ($rawmark, $quiz, $round=true)
 Format a number as a percentage out of $quiz->sumgrades. More...
 
 quiz_report_should_show_grades ($quiz, context $context)
 Should the grades be displayed in this report. More...
 
 quiz_report_unindex ($datum)
 

Detailed Description

Helper functions for the quiz reports.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later