Documentation

UpdateSectionDTO extends AbstractBaseDto
in package
implements DTOInterface

Data Transfer Object for updating Canvas sections.

Tags
see
https://canvas.instructure.com/doc/api/sections.html#method.sections.update

Table of Contents

Interfaces

DTOInterface

Properties

$endAt  : DateTime|null
Section end date in ISO8601 format.
$integrationId  : string|null
The integration_id of the section.
$name  : string|null
The name of the section.
$overrideSisStickiness  : bool|null
Default is true. If false, any fields containing "sticky" changes will not be updated.
$restrictEnrollmentsToSectionDates  : bool|null
Set to true to restrict user enrollments to the start and end dates of the section.
$sisSectionId  : string|null
The SIS ID of the section.
$startAt  : DateTime|null
Section start date in ISO8601 format.
$apiPropertyName  : string
The name of the property in the API

Methods

__construct()  : mixed
BaseDto constructor.
toApiArray()  : array<int, array<string, mixed>>
Convert DTO to API array format.
toArray()  : array<string|int, mixed>
Convert the DTO to an array

Properties

$endAt

Section end date in ISO8601 format.

public DateTime|null $endAt = null

Example: 2011-01-01T01:00Z

$integrationId

The integration_id of the section.

public string|null $integrationId = null

Requires manage_sis permission to set.

$overrideSisStickiness

Default is true. If false, any fields containing "sticky" changes will not be updated.

public bool|null $overrideSisStickiness = null

This parameter is NOT part of the course_section wrapper.

$restrictEnrollmentsToSectionDates

Set to true to restrict user enrollments to the start and end dates of the section.

public bool|null $restrictEnrollmentsToSectionDates = null

$sisSectionId

The SIS ID of the section.

public string|null $sisSectionId = null

Requires manage_sis permission to set.

$startAt

Section start date in ISO8601 format.

public DateTime|null $startAt = null

Example: 2011-01-01T01:00Z

$apiPropertyName

The name of the property in the API

protected string $apiPropertyName = 'course_section'

Methods

__construct()

BaseDto constructor.

public __construct(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>
Tags
throws
Exception

toApiArray()

Convert DTO to API array format.

public toApiArray() : array<int, array<string, mixed>>

Handles the special override_sis_stickiness parameter separately.

Return values
array<int, array<string, mixed>>

toArray()

Convert the DTO to an array

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results