MIDDAG for Moodle

role_support extends facade

Facade for local_middag\framework\support\moodle\role_support.

Tags
see
role_support
mixin

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
string

get_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|bool

isteacher()

public static isteacher(int $userid) : bool
Parameters
$userid : int
Return values
bool

        
On this page

Search results