Documentation

GradebookHistoryGrader
in package

GradebookHistoryGrader represents a grader who worked on assignments on a specific day.

This is a read-only object that does not extend AbstractBaseApi.

Tags
see
https://canvas.instructure.com/doc/api/gradebook_history.html#Grader

Table of Contents

Properties

$assignments  : array<string|int, int>
$id  : int|null
$name  : string|null

Methods

__construct()  : mixed
Constructor to hydrate the object from API response.
fromArray()  : self
Create a GradebookHistoryGrader from an array.
getAssignmentCount()  : int
Get the number of assignments this grader worked on.
workedOnAssignment()  : bool
Check if the grader worked on a specific assignment.

Properties

Methods

__construct()

Constructor to hydrate the object from API response.

public __construct([array<string, mixed> $data = [] ]) : mixed
Parameters
$data : array<string, mixed> = []

fromArray()

Create a GradebookHistoryGrader from an array.

public static fromArray(array<string, mixed> $data) : self
Parameters
$data : array<string, mixed>
Return values
self

getAssignmentCount()

Get the number of assignments this grader worked on.

public getAssignmentCount() : int
Return values
int

workedOnAssignment()

Check if the grader worked on a specific assignment.

public workedOnAssignment(int $assignmentId) : bool
Parameters
$assignmentId : int
Return values
bool

        
On this page

Search results