Tsugi

Gradebook
in package

Store a grade on the lti_result row already loaded in ReqScope.

The gradebook reads lti_result.grade. This is the write side of that row for an internal activity that has no LTI launch. Callers pass a 0–1 fraction. Quiz points, discussion scores, and anything else are converted before they get here.

Table of Contents

Methods

record()  : float|string|null

Methods

record()

public static record(ReqScope $rc, float $grade[, array<string, mixed>|false $extra = false ]) : float|string|null
Parameters
$rc : ReqScope
$grade : float

Fraction from 0 through 1.

$extra : array<string, mixed>|false = false

AGS fields stored with the score. Key with LTI13::ACTIVITY_PROGRESS and LTI13::GRADING_PROGRESS. Omitted values are stored as Completed and FullyGraded.

Return values
float|string|null —

The stored fraction, an error string, or null when this request has no result.


        
On this page

Search results