[svn r9874] Added adlcp namespace prefix support (the parser should do that by itself but...) fixing non-parsing of prerequisites in imsmanifest only with PHP5

skala
Yannick Warnier 18 years ago
parent 4bc075b181
commit 9aa825a6b8
  1. 5
      main/newscorm/scormItem.class.php

@ -160,6 +160,7 @@ class scormItem extends learnpathItem{
}
break;
case 'maxtimeallowed':
case 'adlcp:maxtimeallowed':
$tmp_children = $child->childNodes;
//if(count($tmp_children)==1 and $tmp_children[0]->textContent!='' )
if($tmp_children->length==1 and $child->firstChild->nodeValue!='' )
@ -168,6 +169,7 @@ class scormItem extends learnpathItem{
}
break;
case 'prerequisites':
case 'adlcp:prerequisites':
$tmp_children = $child->childNodes;
//if(count($tmp_children)==1 and $tmp_children[0]->textContent!='' )
if($tmp_children->length==1 and $child->firstChild->nodeValue!='' )
@ -176,6 +178,7 @@ class scormItem extends learnpathItem{
}
break;
case 'timelimitaction':
case 'adlcp:timelimitaction':
$tmp_children = $child->childNodes;
//if(count($tmp_children)==1 and $tmp_children[0]->textContent!='' )
if($tmp_children->length==1 and $child->firstChild->nodeValue!='' )
@ -184,6 +187,7 @@ class scormItem extends learnpathItem{
}
break;
case 'datafromims':
case 'adlcp:datafromims':
$tmp_children = $child->childNodes;
//if(count($tmp_children)==1 and $tmp_children[0]->textContent!='' )
if($tmp_children->length==1 and $child->firstChild->nodeValue!='' )
@ -192,6 +196,7 @@ class scormItem extends learnpathItem{
}
break;
case 'masteryscore':
case 'adlcp:masteryscore':
$tmp_children = $child->childNodes;
//if(count($tmp_children)==1 and $tmp_children[0]->textContent!='' )
if($tmp_children->length==1 and $child->firstChild->nodeValue!='' )

Loading…
Cancel
Save