◆ 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 | $courseid | the id of the course. |
int | $userid | the id of the user. |
array | $coursevisible | options 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 | $tooltypeid | Type ID |
int | $courseid | Course ID |
core\context\course | $context | Course context |
bool | $showinactivitychooser | Show or not show in activity chooser |
- Return values
-
bool | True if the coursevisible was changed, false otherwise. |
The documentation for this class was generated from the following file:
- mod/lti/classes/local/types_helper.php