(no description)
File Size: | 142 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
types_helper:: (2 methods):
get_lti_types_by_course()
override_type_showinactivitychooser()
Class: types_helper - X-Ref
Helper class specifically dealing with LTI types (preconfigured tools).get_lti_types_by_course(int $courseid, int $userid, array $coursevisible = []) X-Ref |
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. param: int $courseid the id of the course. param: int $userid the id of the user. param: array $coursevisible options for 'coursevisible' field, which will default to return: \stdClass[] the array of tool type objects. |
override_type_showinactivitychooser(int $tooltypeid, int $courseid, \core\context\course $context, bool $showinactivitychooser) X-Ref |
Override coursevisible for a given tool on course level. param: int $tooltypeid Type ID param: int $courseid Course ID param: \core\context\course $context Course context param: bool $showinactivitychooser Show or not show in activity chooser return: bool True if the coursevisible was changed, false otherwise. |