mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Splitted scoes optional data in a new table
This commit is contained in:
parent
9c03bbaa04
commit
b3659259fd
19 changed files with 633 additions and 378 deletions
|
@ -30,7 +30,7 @@
|
|||
$attempt = 1;
|
||||
}
|
||||
|
||||
if ($sco = get_record('scorm_scoes','id',$scoid)) {
|
||||
if ($sco = scorm_get_sco($scoid, SCO_ONLY)) {
|
||||
if (!$scorm = get_record('scorm','id',$sco->scorm)) {
|
||||
error('Invalid script call');
|
||||
}
|
||||
|
@ -63,12 +63,12 @@
|
|||
$userdata->credit = 'no-credit';
|
||||
}
|
||||
|
||||
if ($sco = get_record('scorm_scoes','id',$scoid)) {
|
||||
if ($sco = scorm_get_sco($scoid)) {
|
||||
$userdata->course_id = $sco->identifier;
|
||||
$userdata->datafromlms = $sco->datafromlms;
|
||||
$userdata->masteryscore = $sco->masteryscore;
|
||||
$userdata->maxtimeallowed = $sco->maxtimeallowed;
|
||||
$userdata->timelimitaction = $sco->timelimitaction;
|
||||
$userdata->datafromlms = isset($sco->datafromlms)?$sco->datafromlms:'';
|
||||
$userdata->masteryscore = isset($sco->masteryscore)?$sco->masteryscore:'';
|
||||
$userdata->maxtimeallowed = isset($sco->maxtimeallowed)?$sco->maxtimeallowed:'';
|
||||
$userdata->timelimitaction = isset($sco->timelimitaction)?$sco->timelimitaction:'';
|
||||
|
||||
echo "error = 0\nerror_text = Successful\naicc_data=\n";
|
||||
echo "[Core]\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue