elefant/app-scorm 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

elefant/app-scorm

Composer 安装命令:

composer require elefant/app-scorm

包简介

Adds SCORM support to the Elefant CMS

README 文档

README

Adds SCORM module support to the Elefant CMS.

Status: Beta

Needs additional conformance testing, but the core functionality works.

Install modules by uploading zip files through the Tools > SCORM area. Embed SCORM modules into any page through the Dynamic Objects button in the page editor. SCORM data is saved to the database and available via the scorm\Data model.

Compatible with SCORM 1.2 and 2004 API versions.

Data Integration

You can integrate the saved SCORM data into your own applications in one of two ways:

Accessing the SCORM data store

To access the SCORM data directly, use the scorm\Data class like this:

<?php

// Get a single value
$value = scorm\Data::get_value ($module, $user_id, $key);

// Get all values for a particular user and module
$values = scorm\Data::get_values ($module, $user_id);

Receiving SCORM commit notifications

To "hook" your own application into the SCORM commit action on the server-side, first create a handler in your app that will be called via Elefant's hooks mechanism. Here is an outline of a handler to begin with:

<?php

/**
 * Receives SCORM commits as a notification with the following
 * $data parameters:
 *
 * - module: The name of the SCORM module
 * - data: An array of key/value pairs of SCORM values
 *
 * Note that you can retrieve the current user via User::val('id').
 * For a list of SCORM values, visit:
 *
 * http://scorm.com/scorm-explained/technical-scorm/run-time/run-time-reference/
 */

if (! $this->internal) {
	die ('Must be called by another handler');
}

// Add your handling logic here

?>

Next, specify the hook by editing Elefant's conf/config.php file to add the following line to the [Hooks] section:

scorm/commit[] = myapp/myhandler

Note that you would change myapp/myhandler to the real name of your app and handler script. This script will now be called every time a SCORM Commit() action is sent to the server.

统计信息

  • 总下载量: 77
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 5
  • Forks: 4
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-05-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固