Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Re: Getting Scorm id of a course

$
0
0
by Dual Cube.  

Hello Sandeep,

I understand you are trying to create an app for Moodle.You have mentioned that you are getting the course details and its contents. In order to get the SCORM id you have to fetch the record from database using the course module

 gloabl $DB;

$scorm = $DB->get_record("scorm", array("id"=>$cm->instance))

$scorm_ID = $scorm->id;

 //where $cm is the course module//

This might solve your problem.

Let me know if this was of any help. Have a good day.

Thanks and regards

Purnendu (developer)

DualCube


Viewing all articles
Browse latest Browse all 2361

Trending Articles