Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
|
Renderable course index summary. More...
Public Member Functions | |
__construct ($usesections, $courseformatname) | |
constructor | |
add_assign_info ($cmid, $cmname, $sectionname, $timedue, $submissioninfo, $gradeinfo, $cangrade=false) | |
Add a row of data to display on the course index page. | |
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, | |||
$cangrade = false ) |
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. |
bool | cangrade - Does this user have grade capability? |