5 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
34 function delete($a_delete_meta_data =
true)
36 $node_data = $this->tree->getNodeData($this->
getId());
38 $this->tree->deleteTree($node_data);
47 $childs = $this->tree->getChilds($this->
getId());
48 foreach ($childs as $child)
53 if ($obj->getType() ==
"chap")
55 $obj->delete_rec($a_tree, $a_delete_meta_data);
57 if ($obj->getType() ==
"sco")
59 $obj->delete($a_delete_meta_data);
71 function copy($a_target_slm)
75 if ($this->
getSLMId() != $a_target_slm->getId())
77 $chap->setImportId(
"il__chap_".$this->
getId());
79 $chap->setSLMId($a_target_slm->getId());
80 $chap->setType($this->
getType());
83 $a_copied_nodes[$this->
getId()] = $chap->getId();
86 include_once(
"Services/MetaData/classes/class.ilMD.php");
88 $new_md =& $md->cloneMD($a_target_slm->getId(), $chap->getId(), $this->
getType());
99 function exportXML(&$a_xml_writer, $a_inst, &$expLog)