douzhang3898 2015-11-05 05:15
浏览 121
已采纳

将SCORM(从故事情节2导出)成绩保存到数据库

I am currently making a lms in PHP. In the lms, the admin can upload a SCORM (1.2) file which the users will answer, and the result would be saved in the database. (Thought of a table in the form of: userID, scormID, grade)

I have looked through other options such as Moodle, but they don't have the features I need (even with modifications).

If it is not possible to handle SCORM, is there another format exported from storyline 2 that I can use?

  • 写回答

1条回答 默认 最新

  • dongpa2000 2015-11-06 16:16
    关注

    Implementing a basic version of the server part required for SCORM1.2 is easy and here is a quiet long guide explaining the details: http://www.vsscorm.net/ - maybe this answers your question. I explicitly say "basic version" because there are many quirks and difficulties to handle if you'd like to support all features of SCORM and even more if you'd like to handle any kind of SCORM1.2 content.

    Edit

    I'm not well informed about storyline2, but if implementing SCORM is a practicable solution for you, here is a short abstract what you need to do:

    First, you need to implement the import of the SCORM package. This is the easy part:

    • Unzip the ZIP file into a public available folder
    • Parse the imsmanifest.xml. The important stuff are the items and associated resources. You can create a table containing the title of the item and the entry url of the associated resource (SCO). For a simple implementation this should be enough

    Second, you need to implement the runtime environment:

    • You require a html wrapper containing an (i)frame loading the entry url of the SCO and the javascript object "API" which provides the SCORM functionality:
      • LMSInitialize: Setup the SCORM environment. Expects an empty string as parameter
      • LMSFinish: Terminate the session. Expects an empty string as parameter
      • LMSGetValue: Retrieve a value from the cmi data model, e.g. "cmi.core.score.raw". Attention: The returned value is always a string!
      • LMSSetValue: Set a value from the cmi data model
      • LMSCommit: Tell the LMS to store the cmi data model permanently. If you implement LMSSetValue to write the values directly to the database, you can make a stub implementation
      • LMSGetLastError: Retrieve the last error code
      • LMSGetErrorString: For a simple implementation, just return the provided error code
      • LMSGetDiagnostic: For a simple implementation, just return the provided error code
    • The API holds the "cmi" data model, which holds for example the username, score, lesson status, etc.

    As I said, this is just an abstract, but there is a lot of literature about this subject. Here is one more source: http://scorm.com/scorm-explained/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog