34 include_once
"./webservice/soap/classes/class.ilSoapStructureReader.php";
35 include_once
"./webservice/soap/classes/class.ilSoapStructureObjectFactory.php";
51 $ctree =& $this->
object->getLMTree();
53 $nodes = $ctree->getSubtree($ctree->getNodeData($ctree->getRootId()));
59 $parents [$currentParent]= $currentParentStructureObject;
61 $lastStructureObject = null;
64 foreach($nodes as $node)
68 if($node[
"type"] ==
"st" || $node[
"type"] ==
"pg")
78 if ($currentParent != $node[
"parent"])
82 if (array_key_exists($node[
"parent"], $parents))
88 $currentParentStructureObject = $parents[$node[
"parent"]];
97 if ($lastNode[
"type"] !=
"pg")
99 $parents[$lastNode[
"child"]] = $lastStructureObject;
100 $currentParentStructureObject = $lastStructureObject;
105 $currentParent = $lastNode[
"child"];
112 $currentParentStructureObject->addStructureObject( $lastStructureObject);
getObject()
read access to parent object
Create styles array
The data for the language used.
getInstance($objId, $type, $title, $description, $parentRefId)