function scormInitializeParams($trackobj, $scormtype, $idscorm_item) { list($adlcp_masteryscore, $adlcp_maxtimeallowed, $adlcp_completionthreshold, $adlcp_datafromlms, $adlcp_timelimitaction) = sql_fetch_row(sql_query("SELECT adlcp_masteryscore," . "adlcp_maxtimeallowed," . "adlcp_datafromlms," . "adlcp_timelimitaction" . " FROM learning_scorm_items" . " WHERE idscorm_item=" . $idscorm_item)); // tracking initializations if ($scormtype == 'sco') { $trackobj->setParam(SCORM_RTE_LESSONSTATUS, 'not attempted', false, true); } else { $trackobj->setParam(SCORM_RTE_LESSONSTATUS, 'completed', false, true); } $trackobj->setParam(SCORM_RTE_STUDENTNAME, sl_sal_getUserName(), false, true); $trackobj->setParam(SCORM_RTE_CREDIT, 'credit', false, true); $trackobj->setParam(SCORM_RTE_LESSONMODE, 'normal', false, true); $trackobj->setParam(SCORM_RTE_ENTRY, 'ab-initio', false, true); $trackobj->setParam(SCORM_RTE_TOTALTIME, '0000:00:00.00', false, true); $trackobj->setParam(SCORM_RTE_MASTERYSCORE, $adlcp_masteryscore, false, true); $trackobj->setParam(SCORM_RTE_MAXTIMEALLOWED, $adlcp_maxtimeallowed, false, true); $trackobj->setParam(SCORM_RTE_LAUNCH_DATA, $adlcp_datafromlms, false, true); $trackobj->setParam(SCORM_RTE_TIMELIMITACTION, $adlcp_timelimitaction, false, true); }
function scormInitializeParams($trackobj, $scormtype, $idscorm_item) { /* masteryscore in 1.3 is completionthreshold */ list($adlcp_completionthreshold, $adlcp_maxtimeallowed, $adlcp_datafromlms, $adlcp_timelimitaction) = sql_fetch_row(sql_query("SELECT adlcp_completionthreshold," . "adlcp_maxtimeallowed," . "adlcp_datafromlms," . "adlcp_timelimitaction" . " FROM learning_scorm_items" . " WHERE idscorm_item=" . $idscorm_item)); // tracking initializations if ($scormtype == 'sco') { $trackobj->setParam(SCORM_RTE_COMPLETIONSTATUS, 'unknown', false, true); } else { $trackobj->setParam(SCORM_RTE_COMPLETIONSTATUS, 'completed', false, true); } $trackobj->setParam(SCORM_RTE_LEARNERNAME, sl_sal_getUserName(), false, true); $trackobj->setParam(SCORM_RTE_CREDIT, 'credit', false, true); $trackobj->setParam(SCORM_RTE_LESSONMODE, 'normal', false, true); $trackobj->setParam(SCORM_RTE_ENTRY, 'ab-initio', false, true); $trackobj->setParam(SCORM_RTE_TOTALTIME, 'PT0H0M0S', false, true); $trackobj->setParam(SCORM_RTE_COMPLETIONTHRESHOLD, $adlcp_completionthreshold, false, true); if ($adlcp_maxtimeallowed) { $trackobj->setParam(SCORM_RTE_MAXTIMEALLOWED, $adlcp_maxtimeallowed, false, true); } $trackobj->setParam(SCORM_RTE_LAUNCH_DATA, $adlcp_datafromlms, false, true); $trackobj->setParam(SCORM_RTE_TIMELIMITACTION, $adlcp_timelimitaction, false, true); }