From 9aa825a6b82954d7d3375adcab95e77a00ca1b0a Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Tue, 7 Nov 2006 12:16:45 +0100 Subject: [PATCH] [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 --- main/newscorm/scormItem.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main/newscorm/scormItem.class.php b/main/newscorm/scormItem.class.php index 0608194828..96f4c632a3 100644 --- a/main/newscorm/scormItem.class.php +++ b/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!='' )