Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Renderable course index summary. More...
Public Member Functions | |
__construct ($usesections, $courseformatname) | |
constructor More... | |
add_assign_info ($cmid, $cmname, $sectionname, $timedue, $submissioninfo, $gradeinfo) | |
Add a row of data to display on the course index page. More... | |
Renderable course index summary.
assign_course_index_summary::__construct | ( | $usesections, | |
$courseformatname | |||
) |
constructor
boolean | $usesections | - True if this course format uses sections |
string | $courseformatname | - The id of this course format |
assign_course_index_summary::add_assign_info | ( | $cmid, | |
$cmname, | |||
$sectionname, | |||
$timedue, | |||
$submissioninfo, | |||
$gradeinfo | |||
) |
Add a row of data to display on the course index page.
int | $cmid | - The course module id for generating a link |
string | $cmname | - The course module name for generating a link |
string | $sectionname | - The name of the course section (only if $usesections is true) |
int | $timedue | - The due date for the assignment - may be 0 if no duedate |
string | $submissioninfo | - A string with either the number of submitted assignments, or the status of the current users submission depending on capabilities. |
string | $gradeinfo | - The current users grade if they have been graded and it is not hidden. |