34 include_once
"./webservice/soap/classes/class.ilSoapStructureReader.php";
35 include_once
"./webservice/soap/classes/class.ilSoapStructureObjectFactory.php";
47 $ctree =& $this->
object->getLMTree();
49 $nodes = $ctree->getSubtree($ctree->getNodeData($ctree->getRootId()));
55 $parents [$currentParent]= $currentParentStructureObject;
57 $lastStructureObject = null;
60 foreach($nodes as $node)
64 if($node[
"type"] ==
"st" || $node[
"type"] ==
"pg")
74 if ($currentParent != $node[
"parent"])
78 if (array_key_exists($node[
"parent"], $parents))
84 $currentParentStructureObject = $parents[$node[
"parent"]];
93 if ($lastNode[
"type"] !=
"pg")
95 $parents[$lastNode[
"child"]] = $lastStructureObject;
96 $currentParentStructureObject = $lastStructureObject;
101 $currentParent = $lastNode[
"child"];
108 $currentParentStructureObject->addStructureObject( $lastStructureObject);