|
@@ -19,7 +19,7 @@ class scormItem extends learnpathItem{
|
|
//var $prerequisites = ''; - defined in learnpathItem.class.php
|
|
//var $prerequisites = ''; - defined in learnpathItem.class.php
|
|
var $maxtimeallowed = '00:00:00';
|
|
var $maxtimeallowed = '00:00:00';
|
|
var $timelimitaction = '';
|
|
var $timelimitaction = '';
|
|
- var $datafromims = '';
|
|
|
|
|
|
+ var $datafromlms = '';
|
|
var $masteryscore = '';
|
|
var $masteryscore = '';
|
|
var $scorm_contact;
|
|
var $scorm_contact;
|
|
|
|
|
|
@@ -80,11 +80,11 @@ class scormItem extends learnpathItem{
|
|
$this->timelimitaction = $tmp_children[0]->content;
|
|
$this->timelimitaction = $tmp_children[0]->content;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
- case 'datafromims':
|
|
|
|
|
|
+ case 'datafromlms':
|
|
$tmp_children = $child->children();
|
|
$tmp_children = $child->children();
|
|
if(count($tmp_children)==1 and $tmp_children[0]->content!='' )
|
|
if(count($tmp_children)==1 and $tmp_children[0]->content!='' )
|
|
{
|
|
{
|
|
- $this->datafromims = $tmp_children[0]->content;
|
|
|
|
|
|
+ $this->datafromlms = $tmp_children[0]->content;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 'masteryscore':
|
|
case 'masteryscore':
|
|
@@ -186,13 +186,13 @@ class scormItem extends learnpathItem{
|
|
$this->timelimitaction = $child->firstChild->nodeValue;
|
|
$this->timelimitaction = $child->firstChild->nodeValue;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
- case 'datafromims':
|
|
|
|
- case 'adlcp:datafromims':
|
|
|
|
|
|
+ case 'datafromlms':
|
|
|
|
+ case 'adlcp:datafromlms':
|
|
$tmp_children = $child->childNodes;
|
|
$tmp_children = $child->childNodes;
|
|
//if(count($tmp_children)==1 and $tmp_children[0]->textContent!='' )
|
|
//if(count($tmp_children)==1 and $tmp_children[0]->textContent!='' )
|
|
if($tmp_children->length==1 and $child->firstChild->nodeValue!='' )
|
|
if($tmp_children->length==1 and $child->firstChild->nodeValue!='' )
|
|
{
|
|
{
|
|
- $this->datafromims = $child->firstChild->nodeValue;
|
|
|
|
|
|
+ $this->datafromlms = $child->firstChild->nodeValue;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case 'masteryscore':
|
|
case 'masteryscore':
|
|
@@ -262,7 +262,7 @@ class scormItem extends learnpathItem{
|
|
{
|
|
{
|
|
$list[] = array(
|
|
$list[] = array(
|
|
'abs_order' => $abs_order,
|
|
'abs_order' => $abs_order,
|
|
- 'datafromims' => $this->datafromims,
|
|
|
|
|
|
+ 'datafromlms' => $this->datafromlms,
|
|
'identifier' => $this->identifier,
|
|
'identifier' => $this->identifier,
|
|
'identifierref' => $this->identifierref,
|
|
'identifierref' => $this->identifierref,
|
|
'isvisible' => $this->isvisible,
|
|
'isvisible' => $this->isvisible,
|