Moodle plugins directory: Logstore xAPI | Moodle.org
Logstore xAPI
Log storage ::: logstore_xapi
Maintained by David Pesce
Logstore_xapi is a logstore plugin that emits xAPI statements to a Learning Record Store (LRS). Please post all questions, comments, and issues to Github (https://github.com/xAPI-vle/moodle-logstore_xapi).
Latest release:
822 sites
469 downloads
50 fans
Current versions available: 2
What does it do?
As stated on the Github repository, the plugin “emits events from the Moodle Logstore as xAPI statements.” For those that don’t know, the Moodle Logstore is a log of activities within Moodle. When you view a course, complete a quiz, or grade a student, a log of that activity is recorded in the Logstore. The plugin uses these logs to produce xAPI statements and then sends (emits) them to an LRS (Learning Record Store).
How does it work?
The plugin is made up of three parts, an Expander, a Translator, and an Emitter. Every log entry goes through each of these parts in a six-step process before finally reaching the LRS (see below).
- The plugin passes the log entry from the logstore_standard_log to the Expander.
- The Expander expands the log entry with data from your Moodle database.
- The plugin passes the expanded event from step 2 to the Translator.
- The Translator translates the expanded event to xAPI/TinCan recipe options.
- The plugin passes the translated event from step 4 to the Emitter.
- The Emitter constructs the translated event as an xAPI/TinCan statement and emits it to the LRS.
Contributors
David Pesce (Lead maintainer): Developer
jerrett fowler: Developer
Ryan Smith: Developer
Please login to view contributors details and/or to contact them
https://github.com/jlowe64/moodle-logstore_xapi
https://github.com/LearningLocker/Moodle-Log-Expander
https://github.com/LearningLocker/Moodle-xAPI-Translator
https://github.com/LearningLocker/xAPI-Recipe-Emitter
Thankx for the nice plugin !. Did you test it on moodle 3.1 ?
Which statements are supported since I can see only 'viewed' statements captured
I have a similar question to Lee Kirkland who posted above. I'm trying to add custom user profile fields to the statements so that they show up in the LRS as well but I'm not sure how to add it in your code. I'm using the plugin version 1.0.0 and Learning Locker as the LRS.
I understand that there are 3 libraries I need to add it to, i.e. the expander, the translator and the emitter, but I can't figure out where inside of them to add it. I know that the standard log only records the user's id, which means that there must be some query somewhere that then gets all that user's information from the user table as well, but I can't seem to find it to add to that query.
Do I add it to the controller or the repo of each library, or both the controller and the repo (I would imagine that it shouldn't need to be added to any events as it is information required for every event)? And are there existing functions that I add it to or do I need to create a function specifically to query this data? Also, I would imagine I'd need to add it to the statements as well? I hope I'm asking the right questions.
Your help would be greatly appreciated!
https://github.com/xAPI-vle/moodle-logstore_xapi/issues/87
I've configured the plugin with waxlrs, and it's working ok , but, for all user on quiz I can only see view statements but not complete.
I checked the list of sent event and I see that \mod_quiz\event\attempt_reviewed will fire a complete statement . But no sure when attempt_reviewed is fired . This mean that a profesor interaction is necessary ? I would like to achieve when the student finish the quiz then, a complete statement is fired with the score. How I do that ?
Best Regards