31 $ctree = $obect->getLMTree();
33 $nodes = $ctree->getSubTree($ctree->getNodeData($ctree->getRootId()));
39 $parents[$currentParent] = $currentParentStructureObject;
41 $lastStructureObject =
null;
43 foreach ($nodes as $node) {
45 if ($node[
"type"] ===
"st" || $node[
"type"] ===
"pg") {
47 if ((
int) $currentParent !== (
int) $node[
"parent"]) {
50 if (array_key_exists($node[
"parent"], $parents)) {
51 $currentParentStructureObject = $parents[$node[
"parent"]];
52 } elseif ($lastNode[
"type"] !==
"pg") {
54 $parents[$lastNode[
"child"]] = $lastStructureObject;
55 $currentParentStructureObject = $lastStructureObject;
57 $currentParent = $lastNode[
"child"];
70 $currentParentStructureObject->addStructureObject($lastStructureObject);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilSoapStructureObject $structureObject
getInstance(int $objId, string $type, string $title, string $description, int $parentRefId)