Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]

Defines the renderer for the scorm module.

Author: Dan Marsden <dan@danmarsden.com>
Copyright: 2013 Dan Marsden
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 202 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

mod_scorm_renderer:: (2 methods):
  view_user_heading()
  render_mod_scorm_attempt_bar()

mod_scorm_attempt_bar:: (2 methods):
  __construct()
  prepare()


Class: mod_scorm_renderer  - X-Ref

The renderer for the scorm module.

view_user_heading($user, $course, $baseurl, $attempt, $attemptids)   X-Ref
No description

render_mod_scorm_attempt_bar(mod_scorm_attempt_bar $attemptbar)   X-Ref
scorm attempt bar renderer

param: mod_scorm_attempt_bar $attemptbar
return: string

Class: mod_scorm_attempt_bar  - X-Ref

Component representing a SCORM attempts bar.

__construct($attemptids, $attempt, $baseurl, $pagevar = 'page')   X-Ref
Constructor mod_scorm_attempt_bar with only the required params.

param: array $attemptids an array of attempts the user has made
param: int $attempt The attempt you are currently viewing
param: string|moodle_url $baseurl url of the current page, the $pagevar parameter is added
param: string $pagevar name of page parameter that holds the attempt number

prepare(renderer_base $output, moodle_page $page, $target)   X-Ref
Prepares the scorm attempt bar for output.

This method validates the arguments set up for the scorm attempt bar and then
produces fragments of HTML to assist display later on.

param: renderer_base $output
param: moodle_page $page
param: string $target