Hello All,
Working on Moodle version 2.7
Background:
I need to track the amount of time spent by a user in every session as soon as the session ends. When I ran the SCORM debugger tool, I see that the cmi.core.session_time is being sent.
Wed, 05 Apr 2017 14:29:34 GMT: LMSInitialize("", "") => 101
Wed, 05 Apr 2017 14:29:34 GMT: LMSGetErrorString("101", "General exception") => 0
Wed, 05 Apr 2017 14:29:34 GMT: LMSSetValue("cmi.core.lesson_location", "2") => 0
Wed, 05 Apr 2017 14:29:42 GMT: LMSSetValue("cmi.core.session_time", "0000:00:56.41") => 0
This time value, according to the docs - is added to
cmi.core.total_time
however, this is not being updated at the end of every session. for example: if a SCORM module has a bunch of slides and a test at the end, and a user closes the SCORM after a few slides without taking the test, his time spent value is NOT being recorded in the value:
cmi.core.total_time (in the scorm_scoes_track table)
but the value:
cmi.core.session_time
is being sent in the SCORM debugger tool.
Question:
is there a way we can write an event to capture the core.session_time value? where in the mod/scorm module is this value being saved or added to the cmi.core.total_time (so I can trigger the event there)?
Any other ideas on capturing this value are welcome.
thanks for any help in advance. I will be updating the status of the issue as I go along and try to figure this out.