role_support extends facade
Facade for local_middag\framework\support\moodle\role_support.
Tags
Table of Contents
Methods
- get_facade_accessor() : string
- Return the service accessor key for this facade.
- get_role_options() : array<string|int, mixed>
- get_roles_options() : array<string|int, mixed>
- get_teacher() : stdClass|bool
- isteacher() : bool
Methods
get_facade_accessor()
Return the service accessor key for this facade.
public
static get_facade_accessor() : string
Return values
stringget_role_options()
public
static get_role_options([context|null $coursecontext = = 'null' ][, array<string|int, mixed> $excluderoles = = '[0 => \'guest\']' ]) : array<string|int, mixed>
Parameters
- $coursecontext : context|null = = 'null'
- $excluderoles : array<string|int, mixed> = = '[0 => \'guest\']'
Return values
array<string|int, mixed>get_roles_options()
public
static get_roles_options() : array<string|int, mixed>
Return values
array<string|int, mixed>get_teacher()
public
static get_teacher(int $courseid) : stdClass|bool
Parameters
- $courseid : int
Return values
stdClass|boolisteacher()
public
static isteacher(int $userid) : bool
Parameters
- $userid : int