CreateGroupDTO
extends AbstractBaseDto
in package
Data Transfer Object for creating a group in Canvas LMS.
Table of Contents
Properties
- $description : string|null
- A description of the group
- $isPublic : bool|null
- Whether the group is public (applies only to community groups)
- $joinLevel : string|null
- Who can join the group: 'invitation_only', 'request', 'free_to_join'
- $name : string|null
- The name of the group
- $sisGroupId : string|null
- The SIS ID of the group
- $storageQuotaMb : int|null
- The storage quota for the group, in megabytes
- $apiPropertyName : string
- The name of the property in the API
Methods
- __construct() : mixed
- BaseDto constructor.
- toApiArray() : array<string|int, array{name: string, contents: string}>
- Convert DTO to API-compatible array format
- toArray() : array<string|int, mixed>
- Convert the DTO to an array
Properties
$description
A description of the group
public
string|null
$description
= null
$isPublic
Whether the group is public (applies only to community groups)
public
bool|null
$isPublic
= null
$joinLevel
Who can join the group: 'invitation_only', 'request', 'free_to_join'
public
string|null
$joinLevel
= null
$name
The name of the group
public
string|null
$name
= null
$sisGroupId
The SIS ID of the group
public
string|null
$sisGroupId
= null
$storageQuotaMb
The storage quota for the group, in megabytes
public
int|null
$storageQuotaMb
= null
$apiPropertyName
The name of the property in the API
protected
string
$apiPropertyName
= ''
Methods
__construct()
BaseDto constructor.
public
__construct(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
Tags
toApiArray()
Convert DTO to API-compatible array format
public
toApiArray() : array<string|int, array{name: string, contents: string}>
Return values
array<string|int, array{name: string, contents: string}>toArray()
Convert the DTO to an array
public
toArray() : array<string|int, mixed>