ModuleAssignmentOverride
in package
Module Assignment Override Class
Module Assignment Overrides allow applying modules to specific students or sections within a course. When active overrides exist on a module, only students who have an applicable override can access the module and are assigned its items.
This is a data model class that represents a Module Assignment Override object. The actual API operations are available through the Module class:
- Module::listOverrides()
- Module::bulkUpdateOverrides()
Table of Contents
Properties
- $contextModuleId : int
- The ID of the module the override applies to
- $courseSection : array<string|int, mixed>|null
- The override's target section (present only if the override targets a section)
- $group : array<string|int, mixed>|null
- The override's target group (present only if the override targets a group and Differentiation Tags are enabled)
- $id : int
- The ID of the assignment override
- $students : array<string|int, mixed>|null
- An array of the override's target students (present only if the override targets an adhoc set of students)
- $title : string
- The title of the override
Methods
- __construct() : mixed
- Constructor
- getContextModuleId() : int
- getCourseSection() : array<string|int, mixed>|null
- getGroup() : array<string|int, mixed>|null
- getId() : int
- getStudents() : array<string|int, mixed>|null
- getTitle() : string
- setContextModuleId() : void
- setCourseSection() : void
- setGroup() : void
- setId() : void
- setStudents() : void
- setTitle() : void
Properties
$contextModuleId
The ID of the module the override applies to
public
int
$contextModuleId
$courseSection
The override's target section (present only if the override targets a section)
public
array<string|int, mixed>|null
$courseSection
$group
The override's target group (present only if the override targets a group and Differentiation Tags are enabled)
public
array<string|int, mixed>|null
$group
$id
The ID of the assignment override
public
int
$id
$students
An array of the override's target students (present only if the override targets an adhoc set of students)
public
array<string|int, mixed>|null
$students
$title
The title of the override
public
string
$title
Methods
__construct()
Constructor
public
__construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string|int, mixed> = []
getContextModuleId()
public
getContextModuleId() : int
Return values
intgetCourseSection()
public
getCourseSection() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetGroup()
public
getGroup() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetId()
public
getId() : int
Return values
intgetStudents()
public
getStudents() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetTitle()
public
getTitle() : string
Return values
stringsetContextModuleId()
public
setContextModuleId(int $contextModuleId) : void
Parameters
- $contextModuleId : int
setCourseSection()
public
setCourseSection(array<string|int, mixed>|null $courseSection) : void
Parameters
- $courseSection : array<string|int, mixed>|null
setGroup()
public
setGroup(array<string|int, mixed>|null $group) : void
Parameters
- $group : array<string|int, mixed>|null
setId()
public
setId(int $id) : void
Parameters
- $id : int
setStudents()
public
setStudents(array<string|int, mixed>|null $students) : void
Parameters
- $students : array<string|int, mixed>|null
setTitle()
public
setTitle(string $title) : void
Parameters
- $title : string