Created
November 5, 2024 18:54
-
-
Save luukverhoeven/bf072d1d5179b0af33584b66f5931b67 to your computer and use it in GitHub Desktop.
Moodle SQL list LTI activities and connected tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
c.id AS course_id, | |
c.fullname AS course_name, | |
l.id AS lti_activity_id, | |
l.name AS lti_activity_name, | |
l.toolurl AS lti_tool_url, | |
l.instructorcustomparameters AS custom_parameters, | |
lt.id AS lti_type_id, | |
lt.name AS lti_tool_name, | |
lt.clientid AS lti_client_id, | |
cm.id as cmid | |
FROM | |
mdl_course c | |
JOIN | |
mdl_course_modules cm ON cm.course = c.id | |
JOIN | |
mdl_modules m ON m.id = cm.module AND m.name = 'lti' | |
JOIN | |
mdl_lti l ON l.id = cm.instance | |
LEFT JOIN | |
mdl_lti_types lt ON lt.id = l.typeid | |
ORDER BY | |
c.fullname, l.name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment