5 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Asset.php");
37 $this->hide_obj_page = $a_val;
51 function create($a_upload =
false, $a_template =
false)
60 $obj->setId(
"local_obj_".$this->getID().
"_0");
63 $ilDB->manipulate(
"INSERT INTO sahs_sc13_sco ".
64 "(id, hide_obj_page) VALUES (".
65 $ilDB->quote($this->getId(),
"integer").
",".
66 $ilDB->quote($this->getHideObjectivePage(),
"integer").
78 $set = $ilDB->query(
"SELECT * FROM sahs_sc13_sco WHERE ".
79 " id = ".$ilDB->quote($this->getId(),
"integer")
81 $rec = $ilDB->fetchAssoc($set);
93 $ilDB->manipulate(
"UPDATE sahs_sc13_sco SET ".
94 " hide_obj_page = ".$ilDB->quote($this->getHideObjectivePage(),
"integer").
95 " WHERE id = ".$ilDB->quote($this->getId(),
"integer")
107 $ilDB->manipulate(
"DELETE FROM sahs_sc13_sco WHERE "
108 .
" id = " . $ilDB->quote($this->getId(),
"integer")
119 if ($this->
getSLMId() != $a_target_slm->getId())
121 $sco->setImportId(
"il__sco_".$this->
getId());
123 $sco->setSLMId($a_target_slm->getId());
124 $sco->setType($this->
getType());
127 $a_copied_nodes[$this->
getId()] = $sco->getId();
130 include_once(
"Services/MetaData/classes/class.ilMD.php");
132 $new_md =& $md->cloneMD($a_target_slm->getId(), $sco->getId(), $this->
getType());
146 foreach ($objectives as $ob)
149 $mappings = $ob->getMappings();
151 foreach($mappings as $map)
153 $mapinfo .= $map->getTargetObjectiveID();
156 if ($mapinfo == null)
162 $mapinfo =
"global to ".$mapinfo;
165 if ($mapinfo ==
"local")
167 return $ob->getObjectiveID();