Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
assign_grading_summary Class Reference

Renderable grading summary. More...

Inheritance diagram for assign_grading_summary:
renderable

Public Member Functions

 __construct ($participantcount, $submissiondraftsenabled, $submissiondraftscount, $submissionsenabled, $submissionssubmittedcount, $cutoffdate, $duedate, $timelimit, $coursemoduleid, $submissionsneedgradingcount, $teamsubmission, $warnofungroupedusers, $courserelativedatesmode, $coursestartdate, $cangrade=true, $isvisible=true, cm_info $cm=null)
 constructor
 

Public Attributes

boolean $cangrade = false
 cangrade - Can the current user grade students?
 
cm_info $cm = null
 $cm - The course module object.
 
int $coursemoduleid = 0
 coursemoduleid - The assignment course module id
 
boolean $courserelativedatesmode = false
 relativedatesmode - Is the course a relative dates mode course or not
 
int $coursestartdate
 coursestartdate - start date of the course as a unix timestamp
 
int $cutoffdate = 0
 cutoffdate - The assignment cut off date (if one is set)
 
int $duedate = 0
 duedate - The assignment due date (if one is set)
 
boolean $isvisible = true
 isvisible - Is the assignment's context module visible to students?
 
int $participantcount = 0
 participantcount - The number of users who can submit to this assignment
 
int $submissiondraftscount = 0
 submissiondraftscount - The number of submissions in draft status
 
bool $submissiondraftsenabled = false
 submissiondraftsenabled - Allow submission drafts
 
bool $submissionsenabled = false
 submissionsenabled - Allow submissions
 
int $submissionsneedgradingcount = 0
 submissionsneedgradingcount - The number of submissions that need grading
 
int $submissionssubmittedcount = 0
 submissionssubmittedcount - The number of submissions in submitted status
 
boolean $teamsubmission = false
 teamsubmission - Are team submissions enabled for this assignment
 
int $timelimit = 0
 timelimit - The assignment time limit (if one is set)
 
boolean $warnofungroupedusers = false
 warnofungroupedusers - Do we need to warn people that there are users without groups
 
string const WARN_GROUPS_NO = false
 no warning needed about group submissions
 
string const WARN_GROUPS_OPTIONAL = 'warnoptional'
 warn about group submissions, as some will submit as 'Default group'
 
string const WARN_GROUPS_REQUIRED = 'warnrequired'
 warn about group submissions, as groups are required
 

Detailed Description

Renderable grading summary.

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

Constructor & Destructor Documentation

◆ __construct()

assign_grading_summary::__construct ( $participantcount,
$submissiondraftsenabled,
$submissiondraftscount,
$submissionsenabled,
$submissionssubmittedcount,
$cutoffdate,
$duedate,
$timelimit,
$coursemoduleid,
$submissionsneedgradingcount,
$teamsubmission,
$warnofungroupedusers,
$courserelativedatesmode,
$coursestartdate,
$cangrade = true,
$isvisible = true,
cm_info $cm = null )

constructor

Parameters
int$participantcount
bool$submissiondraftsenabled
int$submissiondraftscount
bool$submissionsenabled
int$submissionssubmittedcount
int$cutoffdate
int$duedate
int$timelimit
int$coursemoduleid
int$submissionsneedgradingcount
bool$teamsubmission
string$warnofungroupedusers
bool$courserelativedatesmodetrue if the course is using relative dates, false otherwise.
int$coursestartdateunix timestamp representation of the course start date.
bool$cangrade
bool$isvisible
cm_info | null$cmThe course module object.

The documentation for this class was generated from the following file: