Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
Packback\Lti1p3\LtiGrade Class Reference

Public Member Functions

 __construct (?array $grade=null)
 
 getActivityProgress ()
 
 getArray ()
 
 getCanvasExtension ()
 
 getComment ()
 
 getGradingProgress ()
 
 getScoreGiven ()
 
 getScoreMaximum ()
 
 getSubmissionReview ()
 
 getTimestamp ()
 
 getUserId ()
 
 setActivityProgress ($value)
 
 setCanvasExtension ($value)
 Add custom extensions for Canvas.
 
 setComment ($comment)
 
 setGradingProgress ($value)
 
 setScoreGiven ($value)
 
 setScoreMaximum ($value)
 
 setSubmissionReview ($value)
 
 setTimestamp ($value)
 
 setUserId ($value)
 

Static Public Member Functions

static new ()
 

Member Function Documentation

◆ setCanvasExtension()

Packback\Lti1p3\LtiGrade::setCanvasExtension ( $value)

Add custom extensions for Canvas.

Disclaimer: You should only set this if your LMS is Canvas. Some LMS (e.g. Schoology) include validation logic that will throw if there is unexpected data. And, the type of LMS cannot simply be inferred by their URL.

See also
https://documentation.instructure.com/doc/api/score.html

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