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

Functions

 get_scorm_default (&$userdata, $scorm, $scoid, $attempt, $mode)
 Sets up $userdata array and default values for SCORM 1.3 .
 
 scorm_check_activity ($activity, $userid)
 
 scorm_evaluate_condition ($rollupruleconds, $sco, $userid)
 
 scorm_limit_cond_check ($activity, $userid)
 
 scorm_seq_activity_progress_rollup ($sco, $userid, $seq)
 
 scorm_seq_end_attempt ($sco, $userid, $seq)
 
 scorm_seq_flow ($activity, $direction, $seq, $childrenflag, $userid)
 
 scorm_seq_flow_activity_traversal ($activity, $userid, $direction, $childrenflag, $prevdirection, $seq)
 
 scorm_seq_flow_tree_traversal ($activity, $direction, $childrenflag, $prevdirection, $seq, $userid, $skip=false)
 
 scorm_seq_is ($what, $scoid, $userid, $attempt=0)
 
 scorm_seq_measure_rollup ($sco, $userid, $attempt=0)
 
 scorm_seq_navigation ($scoid, $userid, $request, $attempt=0)
 
 scorm_seq_objective_rollup ($sco, $userid, $attempt=0)
 
 scorm_seq_objective_rollup_default ($sco, $userid, $attempt=0)
 
 scorm_seq_objective_rollup_measure ($sco, $userid, $attempt=0)
 
 scorm_seq_objective_rollup_rules ($sco, $userid, $attempt=0)
 
 scorm_seq_overall ($scoid, $userid, $request, $attempt)
 
 scorm_seq_overall_rollup ($sco, $userid, $seq)
 
 scorm_seq_rollup_rule_check ($sco, $userid, $action)
 
 scorm_seq_rule_check ($sco, $rule)
 
 scorm_seq_rules_check ($sco, $action)
 
 scorm_seq_set ($what, $scoid, $userid, $attempt=0, $value='true')
 
 scorm_seq_termination ($seq, $userid)
 

Function Documentation

◆ get_scorm_default()

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

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

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.3 package