Skip to content

Commit

Permalink
SCORM Backup MDL-22151 use seq_mapinfos and seq_mapinfo - keeps thing…
Browse files Browse the repository at this point in the history
…s consistant. -thanks Eloy
  • Loading branch information
danmarsden committed May 4, 2010
1 parent 2590463 commit fb80705
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mod/scorm/backup/moodle2/backup_scorm_stepslib.php
Expand Up @@ -84,9 +84,9 @@ protected function define_structure() {
$seqobjective = new backup_nested_element('seq_objective', array('id'), array(
'primaryobj', 'objectiveid', 'satisfiedbymeasure', 'minnormalizedmeasure'));

$seqmapinfo = new backup_nested_element('seq_mapinfos');
$seqmapinfos = new backup_nested_element('seq_mapinfos');

$seqmapinf = new backup_nested_element('seq_mapinfo', array('id'), array(
$seqmapinfo = new backup_nested_element('seq_mapinfo', array('id'), array(
'targetobjectiveid', 'readsatisfiedstatus', 'readnormalizedmeasure', 'writesatisfiedstatus',
'writenormalizedmeasure'));

Expand Down Expand Up @@ -118,8 +118,8 @@ protected function define_structure() {
$sco->add_child($seqobjectives);
$seqobjectives->add_child($seqobjective);

$seqobjective->add_child($seqmapinfo);
$seqmapinfo->add_child($seqmapinf);
$seqobjective->add_child($seqmapinfos);
$seqmapinfos->add_child($seqmapinfo);

$sco->add_child($scotracks);
$scotracks->add_child($scotrack);
Expand All @@ -141,7 +141,7 @@ protected function define_structure() {

$seqobjective->set_source_table('scorm_seq_objective', array('scoid' => backup::VAR_PARENTID));

$seqmapinf->set_source_table('scorm_seq_mapinfo', array('objectiveid' => backup::VAR_PARENTID));
$seqmapinfo->set_source_table('scorm_seq_mapinfo', array('objectiveid' => backup::VAR_PARENTID));

// All the rest of elements only happen if we are including user info
if ($userinfo) {
Expand Down

0 comments on commit fb80705

Please sign in to comment.