Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 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.

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

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.

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

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

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

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

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

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

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

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.

return: array The default values that should be used 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