Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
mod_lti\local\types_helper Class Reference

Static Public Member Functions

static get_lti_types_by_course (int $courseid, int $userid, array $coursevisible=[])
 Returns all LTI tool types (preconfigured tools) visible in the given course and for the given user.
 
static override_type_showinactivitychooser (int $tooltypeid, int $courseid, core\context\course $context, bool $showinactivitychooser)
 Override coursevisible for a given tool on course level.
 

Member Function Documentation

◆ get_lti_types_by_course()

static mod_lti\local\types_helper::get_lti_types_by_course ( int $courseid,
int $userid,
array $coursevisible = [] )
static

Returns all LTI tool types (preconfigured tools) visible in the given course and for the given user.

This list will contain both site level tools and course-level tools.

Parameters
int$courseidthe id of the course.
int$useridthe id of the user.
array$coursevisibleoptions for 'coursevisible' field, which will default to [LTI_COURSEVISIBLE_PRECONFIGURED, LTI_COURSEVISIBLE_ACTIVITYCHOOSER] if omitted.
Return values
stdClass[]the array of tool type objects.

◆ override_type_showinactivitychooser()

static mod_lti\local\types_helper::override_type_showinactivitychooser ( int $tooltypeid,
int $courseid,
core\context\course $context,
bool $showinactivitychooser )
static

Override coursevisible for a given tool on course level.

Parameters
int$tooltypeidType ID
int$courseidCourse ID
core\context\course$contextCourse context
bool$showinactivitychooserShow or not show in activity chooser
Return values
boolTrue if the coursevisible was changed, false otherwise.

The documentation for this class was generated from the following file: