Bharath Parlapalli
Bharath Parlapalli

Reputation: 75

Moodle 2.7, scorm 1.2 - how to capture cmi.core.session_time from the SCORM in Moodle?

In Moodle 2.7, scorm 1.2 writes the cmi.core.session_time (can see it in the SCORM tracking tool) but that value is not stored in the DB in Moodle (the only value stored is cmi.core.total_time).

is there a way to get the session_time value via events in Moodle?

Upvotes: 0

Views: 1118

Answers (1)

gnuwings
gnuwings

Reputation: 950

According to the specification when LMSFinish() is called at the end of the session, the value in the cmi.core.session_time element should be added to the value stored in the cmi.core.total_time element, and the value in the cmi.core.session_time element should be reset. To get the value you can use a script in the LMSFinish() function and get the value of cmi.core.session_time before resetting. Hope this will help.

Upvotes: 3

Related Questions