Scorm 1.2 开发文档【比较全面】
来源:互联网 发布:三生三世知乎 编辑:程序博客网 时间:2024/06/05 05:56
1. cmi.core.total_time:
这个参数是指学习本sco用的总时间,只能读,不能写,它由平台自动累加,而在课程中只需上传每次学习sco的时间,即回话时间(cmi.core.session_time),即可。当然,在从平台读取数据时,还是要取一次的。
2. cmi.core.score.raw;
这个参数是测试成绩,可读可写。如果不上传,则为空,在平台计算成绩时就不会计算在内。如果上传,则至少为0。有的平台,要求计算课程的平均得分,若sco中没有测试题,不用上传成绩,则最好去掉上传成绩的语句,不让会把整个课程的平均成绩拉下来的。
3. cmi.core.lesson_location;
这个参数是记录上次离开sco时的位置,课件读取后,可依次进入到上次离开的位置,当然,这要在课程中做相应的设置才行。
4. cmi.core.lesson_status;
根据学习时间的判断sco的完成状态
element
Supported
Use
Possible values
Limitations
cmi.core.lesson_status
Yes
Not Attempted
In Progress
Completed
Incomplete
Passed
Failed
Must be one of the strings listed in the possible values column
cmi.core.suspend_data
Yes
To store any information that the course needs to function
Free text
No special characters. Supported characters
cmi.core.score.raw
Yes
To store the number/weightage of questions answered correctly
Takes a number
考试分数
cmi.core.score.max
Yes
To store the total number/weightage of questions in a test
Takes a number
cmi.core.score.min
Yes
The minimal number/weightage of questions in a test(usually 0)
Takes a number
cmi._version
Yes
Represents the version of the data model
The value is 1.2 for this version
cmi.core.student_name
Yes
Name provided for the learner by the LMS
cmi.core.student.id
Yes
Login ID provided for the learner by the LMS
cmi.core.lesson_location
Yes
Represents the last page visited before the learner quits the course.
Can be decided by the courseware.
cmi.core.credit
Yes
Indicates if the learner will be credited for performance for this SCO.
Only field value "Credit" supported
cmi.core.entry
Yes
Checks if the learner has already entered the course before
ab-initio
resume
“”
"Ab-initio" and "Resume" are the possible values that will be returned
通过API(APIAdapterApplet)来更新,课件中不直接赋值,其根据exit参数来确定。
cmi.core.total_time
Yes
Returns the time spent by the learner in a SCO
cmi.core.lesson_mode
Yes
Returns the mode in which the sco is presented to the learner
review 回顾
browse 浏览
Currently only "Normal" is supported
课件展现形式,比如choice、auto
cmi.core.exit
Yes
Indicates the state of exit(logout, suspend etc)
“”
cmi.core.session_time
Yes
Indicates the time spent on the SCO in this session
cmi.launch_data
Yes
Any data provided by the LMS(From the manifest) to the SCO after the launch
cmi.comments
Yes
Storing any comments
Has a limitation of 4k for the data
cmi.comments_from_lms
Yes
Storing any comments from LMS
1)
2)
3)
4)
5)
6)
7)
8)
1) LMSInitilize
LMSInitialize 负责启动SCO,当学习者进入开始阅读一个SCO时,SCO第一步就是先要呼叫LMSInitialize,LMSInitialize function判断该学员之上课记录,当学员第一次阅读该门课的该SCO时,LMSInitialize就会将设定初值至相关的环境变量;若学习者并不是第一次阅读该SCO,LMSInitialize则必须将该学习者之前的上课记录取出,并存入环境变量中,如此即完成启动SCO之动作。
var result = LMSInitialize("")
if (result == "false")
{
}
else
{
2) LMSFinish
当学习者阅读完并要离开一个SCO时,在结束时SCO便会将呼叫LMSFinish,LMSFinish主要负责将环境变量重设,并判断该SCO是否在结束之前己经有呼叫LMSCommit将所有记录回存至LMS,若尚未储存,则会自动呼叫将所有学习者在该SCO的上课记录回存。
var result = LMSFinish("");
3) LMSGetValue
LMSGetValue 主要负责将数据由LMS取出,当SCO呼叫LMSGetValue时,LMSSetValue会先判断data model是否可以读取,若不可读取,则写入其错误代码;若该data model是可以读取,则进取出其值并回传给SCO。但在设计时,如同LMSSetValue并没有直接和receiver相连,所以是将数据由暂存的内存中取出。
var value = LMSGetValue("cmi.core.student_name")
A typical return value might be "Hyde, Jackson".
var value = LMSGetValue("cmi.core.lesson_status")
A typical return value might be "incomplete".
var value = LMSGetValue(“cmi._version”)
4) LMSSetValue:
在LMSSetValue 是相当复杂的Function,负责储存所有相关的学习记录,当SCO呼叫欲将某个data model回存时,LMSSetValue第一步先判断所欲回存之data model,判断该data model是否可以set(写入),其次判断其型别,当型别错误时,记录其Error Code,当型别检查通过时,则依SCORM1.2 RTE所订定该data model的处理规则,并将数据存入内存中。
var result = LMSSetValue("cmi.core.score.raw","95");
5) LMSCommit
相较于LMSSetValue和LMSGetValue,LMSCommit可以说简单多了,其主要负责将所有暂存在内存中的学习记录,回存到LMS,在设计时应用了XMLHTTP之技术,所以当LMSCommit被呼叫时,会将所有之暂存数据组成XML文件,再应用XMLHTTP对象将数据POST到 Receiver,当Receiver收到这个Request时,就会解译所传入之XML文件,再将XML文件中的数据直接存入数据库中。
var result = LMSCommit("");
6) GetLastError
该函数将返回一个错误代码,每次API function呼叫后,该函数的值将被重置。(LMSGetErrorString及LMSGetDiagnostic除外)。
var errorCode = LMSGetLastError();
7) GetErrorString
var errorString = LMSGetErrorString("403");
var moreInfo = LMSGetDiagnostic("403");
- Scorm 1.2 开发文档【比较全面】
- Scorm 1.2 开发介绍
- Java开发工具全面比较
- scorm 1.2标准基本知识
- SCORM
- SCORM
- 一个比较全面游戏开发技术网站
- Eclipse开发 稍微比较全面的解析
- 整理了一份比较全面的PHP开发编码规范.
- 一份比较全面的PHP开发编码规范
- 一份比较全面的PHP开发编码规范
- 软件开发比较齐全的帮助文档
- SCORM 1.2與SCORM 2004規範之初步比較
- 百度文档中比较全面的各种数据库的连接方式
- C#网站,比较全面
- MATLAB入门教程,比较全面
- 在线API,比较全面
- 软件开发比较齐全的帮助文档下载地址
- Console.WriteLine()格式化输出小记
- eclipse启动优化
- 使用FormData提交数据
- CF#801 A. Vicious Keyboard(字符串,水题)
- MFC中的DC,CDC和HDC
- Scorm 1.2 开发文档【比较全面】
- Spring Boot中使用Swagger2构建强大的RESTful API文档
- Redis和Memcached的区别
- 【反射+注解+动态代理在事务中的应用service层】
- 机动式宽带自组网应急通信系统应用场景
- js Xdate 获取当前月的第一天和最后一天
- Android Studio 上传 svn 很慢 Commit Dialog一直存在
- 面向对象的意义
- 基于seq2seq的中国对联自动配对技术实践