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 401] [Versions 310 and 402] [Versions 310 and 403]

(no description)

File Size: 575 lines (22 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 8 functions


Functions that are not part of a class:

scorm_add_time($a, $b)   X-Ref
functions used by AICC packages.


scorm_get_aicc_columns($row, $mastername='system_id')   X-Ref
Take the header row of an AICC definition file
and returns sequence of columns and a pointer to
the sco identifier column.

param: string $row AICC header row
param: string $mastername AICC sco identifier column
return: mixed

scorm_forge_cols_regexp($columns, $remodule='(".*")   X-Ref
Given a colums array return a string containing the regular
expression to match the columns in a text row.

param: array $column The header columns
param: string $remodule The regular expression module for a single column
return: string

scorm_parse_aicc(&$scorm)   X-Ref
Sets up AICC packages
Called whenever package changes

param: object $scorm instance - fields are updated and changes saved into database
return: bool

scorm_aicc_get_hacp_session($scormid)   X-Ref
Given a scormid creates an AICC Session record to allow HACP

param: int $scormid - id from scorm table
return: string hacpsession

scorm_aicc_confirm_hacp_session($hacpsession)   X-Ref
Check the hacp_session for whether it is valid.

param: string $hacpsession The hacpsession value to check (optional). Normally leave this blank
return: mixed - false if invalid, otherwise returns record from scorm_aicc_session table.

scorm_aicc_generate_simple_sco($scorm)   X-Ref
generate a simple single activity AICC object
structure to wrap around and externally linked
AICC package URL

param: object $scorm package record

get_scorm_default(&$userdata, $scorm, $scoid, $attempt, $mode)   X-Ref
Sets up $userdata array and default values for AICC package.

param: stdClass $userdata an empty stdClass variable that should be set up with user values
param: object $scorm package record
param: string $scoid SCO Id
param: string $attempt attempt number for the user
param: string $mode scorm display mode type
return: array The default values that should be used for AICC package