UpdateRubricDTO
extends AbstractBaseDto
in package
implements
DTOInterface
Data Transfer Object for updating Canvas rubrics.
Tags
Table of Contents
Interfaces
Properties
- $association : array<string, mixed>|null
- Association data for updating a rubric association
- $criteria : array<int, array<string, mixed>>|null
- An array of criteria objects for the rubric
- $freeFormCriterionComments : bool|null
- Whether or not you can write custom comments in the ratings field for a rubric
- $hideScoreTotal : bool|null
- Whether or not the score total is displayed within the rubric
- $rubricAssociationId : int|null
- The ID of the rubric association (if updating association)
- $skipUpdatingPointsPossible : bool|null
- Whether or not to update the points possible
- $title : string|null
- The title of the rubric
- $apiPropertyName : string
- The name of the property in the API
Methods
- __construct() : mixed
- Constructor
- toApiArray() : array<int, array<string, mixed>>
- Convert the DTO to an array for API requests
- toArray() : array<string|int, mixed>
- Convert the DTO to an array
Properties
$association
Association data for updating a rubric association
public
array<string, mixed>|null
$association
= null
$criteria
An array of criteria objects for the rubric
public
array<int, array<string, mixed>>|null
$criteria
= null
$freeFormCriterionComments
Whether or not you can write custom comments in the ratings field for a rubric
public
bool|null
$freeFormCriterionComments
= null
$hideScoreTotal
Whether or not the score total is displayed within the rubric
public
bool|null
$hideScoreTotal
= null
$rubricAssociationId
The ID of the rubric association (if updating association)
public
int|null
$rubricAssociationId
= null
$skipUpdatingPointsPossible
Whether or not to update the points possible
public
bool|null
$skipUpdatingPointsPossible
= null
$title
The title of the rubric
public
string|null
$title
= null
$apiPropertyName
The name of the property in the API
protected
string
$apiPropertyName
= 'rubric'
Methods
__construct()
Constructor
public
__construct([array<string, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string, mixed> = []
toApiArray()
Convert the DTO to an array for API requests
public
toApiArray() : array<int, array<string, mixed>>
Return values
array<int, array<string, mixed>>toArray()
Convert the DTO to an array
public
toArray() : array<string|int, mixed>