Note:

This site is no longer used and is in read-only mode. Instead please go to our new Moodle Developer Resource site.

SCORM reports

From MoodleDocs
Revision as of 06:44, 27 January 2012 by Ankit Agarwal (talk | contribs) (Created page with "{{Moodle 2.2}} == Introduction == SCORM reports were converted to a pluggable architecture as of MOODLE 2.2. The original documentation of the project can be found at [http://doc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Moodle 2.2

Introduction

SCORM reports were converted to a pluggable architecture as of MOODLE 2.2. The original documentation of the project can be found at SCORM Reporting Improvements. Scorm Reports define a way for developer to develop reports of their own for the scorm module. The rest of this page deals with the details of how to develop such a report.

Template

File structure

Each plugin is allowed to have following files and folders:

Mandatory Files

  • report.php
  • lang/xx/scormreport_pluginname.php

Other Optional Files

  • Version.php
  • db/install.php
  • db/install.xml
  • db/upgrade.php
  • db/access.php

As you might have noticed the file structure for scorm report plugin is similar to any other standard plugin in Moodle. The only differences are:-

  • There must a file report.php must extend the default reporting class "scorm_default_report" and the extended class must implement the method "display($scorm, $cm, $course, $download)", which should handle the core reporting feature.
  • The lang file is not optional. That is each plugin must define the string "pluginname" in the lang files.

Naming Conventions

Interfacing to APIs

See Also

SCORM Reporting Improvements Original GSOC 2011 Project Documentation

User Docs

Using SCORM SCORM FAQ SCORM Module