Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
scorm_12lib.php File Reference

Functions

 get_scorm_default (&$userdata, $scorm, $scoid, $attempt, $mode)
 Sets up $userdata array and default values for SCORM 1.2 .
 

Function Documentation

◆ get_scorm_default()

get_scorm_default ( & $userdata,
$scorm,
$scoid,
$attempt,
$mode )

Sets up $userdata array and default values for SCORM 1.2 .

Parameters
stdClass$userdataan empty stdClass variable that should be set up with user values
object$scormpackage record
string$scoidSCO Id
string$attemptattempt number for the user
string$modescorm display mode type
Return values
arrayThe default values that should be used for SCORM 1.2 package