Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENHANCEMENT: Lookup of module to record tracking against. #3

Closed
lushonline opened this issue Feb 25, 2021 · 0 comments
Closed

ENHANCEMENT: Lookup of module to record tracking against. #3

lushonline opened this issue Feb 25, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@lushonline
Copy link
Owner

The current implementation makes assumption that the COURSE has the xAPI OBJECT ID as Moodle IDNUMBER, and there is only one COURSE with that Moodle IDNUMBER.

It also assumes that their is only one Activity (Course Module) in the course with that ID as well.

This is the case if content loaded using the bulk tool.

The processing logic starting around https://github.com/lushonline/moodle-mod_externalcontent/blob/master/lrs/xapihelper.php#L79 though should be updated to:

  1. Lookup the COURSE MODULES ($cm) with the xAPI OBJECT ID
  2. For each $CM determine the COURSE ($course) and then process the completion
@lushonline lushonline added the enhancement New feature or request label Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant