UpdateLoginDTO
extends AbstractBaseDto
in package
implements
DTOInterface
Data Transfer Object for updating an existing login (pseudonym)
Table of Contents
Interfaces
Properties
- $authenticationProviderId : string|null
- The authentication provider this login is associated with Can be integer ID or provider type Specify null or empty string to unassociate from known provider
- $declaredUserType : string|null
- The declared intention of the user type Valid values: administrative, observer, staff, student, student_other, teacher
- $integrationId : string|null
- Integration ID for the login Requires manage SIS permissions on the account Secondary identifier for complex SIS integrations
- $oldPassword : string|null
- The prior password for the login Required if the caller is changing their own password
- $overrideSisStickiness : bool|null
- Default is true. If false, any fields containing "sticky" changes will not be updated See SIS CSV Format documentation for information on which fields can have SIS stickiness
- $password : string|null
- The new password for the login Admins can only set password if "Password setting by admins" account setting is enabled
- $sisUserId : string|null
- SIS ID for the login Requires manage SIS permissions on the account
- $uniqueId : string|null
- The new unique ID for the login
- $workflowState : string|null
- Used to suspend or re-activate a login Valid values: active, suspended
- $apiPropertyName : string
- The name of the property in the API
Methods
- __construct() : mixed
- BaseDto constructor.
- getAuthenticationProviderId() : string|null
- getDeclaredUserType() : string|null
- getIntegrationId() : string|null
- getOldPassword() : string|null
- getOverrideSisStickiness() : bool|null
- getPassword() : string|null
- getSisUserId() : string|null
- getUniqueId() : string|null
- getWorkflowState() : string|null
- setAuthenticationProviderId() : void
- setDeclaredUserType() : void
- setIntegrationId() : void
- setOldPassword() : void
- setOverrideSisStickiness() : void
- setPassword() : void
- setSisUserId() : void
- setUniqueId() : void
- setWorkflowState() : void
- toApiArray() : array<string|int, array{name: string, contents: string}>
- Transform DTO properties to Canvas API multipart format
- toArray() : array<string|int, mixed>
- Convert the DTO to an array
- validateParameters() : void
- Validate parameters
Properties
$authenticationProviderId
The authentication provider this login is associated with Can be integer ID or provider type Specify null or empty string to unassociate from known provider
public
string|null
$authenticationProviderId
= null
$declaredUserType
The declared intention of the user type Valid values: administrative, observer, staff, student, student_other, teacher
public
string|null
$declaredUserType
= null
$integrationId
Integration ID for the login Requires manage SIS permissions on the account Secondary identifier for complex SIS integrations
public
string|null
$integrationId
= null
$oldPassword
The prior password for the login Required if the caller is changing their own password
public
string|null
$oldPassword
= null
$overrideSisStickiness
Default is true. If false, any fields containing "sticky" changes will not be updated See SIS CSV Format documentation for information on which fields can have SIS stickiness
public
bool|null
$overrideSisStickiness
= null
$password
The new password for the login Admins can only set password if "Password setting by admins" account setting is enabled
public
string|null
$password
= null
$sisUserId
SIS ID for the login Requires manage SIS permissions on the account
public
string|null
$sisUserId
= null
$uniqueId
The new unique ID for the login
public
string|null
$uniqueId
= null
$workflowState
Used to suspend or re-activate a login Valid values: active, suspended
public
string|null
$workflowState
= 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
getAuthenticationProviderId()
public
getAuthenticationProviderId() : string|null
Return values
string|nullgetDeclaredUserType()
public
getDeclaredUserType() : string|null
Return values
string|nullgetIntegrationId()
public
getIntegrationId() : string|null
Return values
string|nullgetOldPassword()
public
getOldPassword() : string|null
Return values
string|nullgetOverrideSisStickiness()
public
getOverrideSisStickiness() : bool|null
Return values
bool|nullgetPassword()
public
getPassword() : string|null
Return values
string|nullgetSisUserId()
public
getSisUserId() : string|null
Return values
string|nullgetUniqueId()
public
getUniqueId() : string|null
Return values
string|nullgetWorkflowState()
public
getWorkflowState() : string|null
Return values
string|nullsetAuthenticationProviderId()
public
setAuthenticationProviderId(string|null $authenticationProviderId) : void
Parameters
- $authenticationProviderId : string|null
setDeclaredUserType()
public
setDeclaredUserType(string|null $declaredUserType) : void
Parameters
- $declaredUserType : string|null
setIntegrationId()
public
setIntegrationId(string|null $integrationId) : void
Parameters
- $integrationId : string|null
setOldPassword()
public
setOldPassword(string|null $oldPassword) : void
Parameters
- $oldPassword : string|null
setOverrideSisStickiness()
public
setOverrideSisStickiness(bool|null $overrideSisStickiness) : void
Parameters
- $overrideSisStickiness : bool|null
setPassword()
public
setPassword(string|null $password) : void
Parameters
- $password : string|null
setSisUserId()
public
setSisUserId(string|null $sisUserId) : void
Parameters
- $sisUserId : string|null
setUniqueId()
public
setUniqueId(string|null $uniqueId) : void
Parameters
- $uniqueId : string|null
setWorkflowState()
public
setWorkflowState(string|null $workflowState) : void
Parameters
- $workflowState : string|null
toApiArray()
Transform DTO properties to Canvas API multipart 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>
Return values
array<string|int, mixed>validateParameters()
Validate parameters
private
validateParameters() : void