5 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
27 parent::__construct($a_slm_object, $a_id);
34 function delete($a_delete_meta_data =
true)
36 $node_data = $this->tree->getNodeData($this->
getId());
38 $this->tree->deleteTree($node_data);
39 parent::deleteSeqInfo();
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);
64 parent::delete($a_delete_meta_data);
70 function create($a_upload =
false, $a_template =
false)
72 include_once(
"./Modules/Scorm2004/classes/seq_editor/class.ilSCORM2004Item.php");
73 include_once(
"./Modules/Scorm2004/classes/seq_editor/class.ilSCORM2004Objective.php");
74 parent::create($a_upload);
89 $seq_item->setDefaultXml(
true);
96 function copy($a_target_slm)
100 if ($this->
getSLMId() != $a_target_slm->getId())
102 $chap->setImportId(
"il__chap_".$this->
getId());
104 $chap->setSLMId($a_target_slm->getId());
105 $chap->setType($this->
getType());
108 $a_copied_nodes[$this->
getId()] = $chap->getId();
111 include_once(
"Services/MetaData/classes/class.ilMD.php");
113 $new_md = $md->cloneMD($a_target_slm->getId(), $chap->getId(), $this->
getType());
138 include_once(
"Services/MetaData/classes/class.ilMD2XML.php");
140 $md2xml->setExportMode(
true);
141 $md2xml->startExport();
142 $a_xml_writer->appendXML($md2xml->getXML());
Class ilSCORM2004Condition.
delete_rec($a_delete_meta_data=true)
Delete data records of chapter (and nested objects)
insertDefaultSequencingItem()
Insert default sequencing item.
Class ilSCORM2004Chapter.
exportXML(&$a_xml_writer, $a_inst, &$expLog)
Export object to xml (see ilias_co.dtd)
create($a_upload=false, $a_template=false)
Create asset.
getSLMId()
Get ID of parent Scorm Learning Module Object.
static getInstance($a_slm_object, $a_id=0, $a_halt=true)
__construct($a_slm_object, $a_id=0)
Constructor public.
getDescription()
Get description.
exportXMLMetaData(&$a_xml_writer)
export structure objects meta data to xml (see ilias_co.dtd)
copy($a_target_slm)
Copy chapter.
setType($a_type)
Set type.