34 include_once
"./webservice/soap/classes/class.ilSoapStructureReader.php";
35 include_once
"./webservice/soap/classes/class.ilSoapStructureObjectFactory.php";
52 $ctree =&$this->
object->getLMTree();
54 $nodes = $ctree->getSubtree($ctree->getNodeData($ctree->getRootId()));
60 $parents [$currentParent]= $currentParentStructureObject;
62 $lastStructureObject = null;
65 foreach (
$nodes as $node) {
68 if ($node[
"type"] ==
"st" || $node[
"type"] ==
"pg") {
77 if ($currentParent != $node[
"parent"]) {
80 if (array_key_exists($node[
"parent"], $parents)) {
85 $currentParentStructureObject = $parents[$node[
"parent"]];
92 if ($lastNode[
"type"] !=
"pg") {
93 $parents[$lastNode[
"child"]] = $lastStructureObject;
94 $currentParentStructureObject = $lastStructureObject;
98 $currentParent = $lastNode[
"child"];
105 $currentParentStructureObject->addStructureObject($lastStructureObject);
getObject()
read access to parent object
getInstance($objId, $type, $title, $description, $parentRefId)