24 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
53 function delete($a_delete_meta_data =
true)
55 $node_data = $this->tree->getNodeData($this->
getId());
57 $this->tree->deleteTree($node_data);
66 $childs = $this->tree->getChilds($this->
getId());
67 foreach ($childs as $child)
72 if ($obj->getType() ==
"chap")
74 $obj->delete_rec($a_tree, $a_delete_meta_data);
76 if ($obj->getType() ==
"sco")
78 $obj->delete($a_delete_meta_data);
90 function copy($a_target_slm)
94 if ($this->
getSLMId() != $a_target_slm->getId())
96 $chap->setImportId(
"il__chap_".$this->
getId());
98 $chap->setSLMId($a_target_slm->getId());
99 $chap->setType($this->
getType());
102 $a_copied_nodes[$this->
getId()] = $chap->getId();
105 include_once(
"Services/MetaData/classes/class.ilMD.php");
107 $new_md =& $md->cloneMD($a_target_slm->getId(), $chap->getId(), $this->
getType());