5 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Asset.php");
28 parent::__construct($a_slm_object, $a_id);
37 $this->hide_obj_page = $a_val;
51 function create($a_upload =
false, $a_template =
false)
55 parent::create($a_upload, $a_template);
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").
80 $set = $ilDB->query(
"SELECT * FROM sahs_sc13_sco WHERE ".
81 " id = ".$ilDB->quote($this->getId(),
"integer")
83 $rec = $ilDB->fetchAssoc($set);
95 $ilDB->manipulate(
"UPDATE sahs_sc13_sco SET ".
96 " hide_obj_page = ".$ilDB->quote($this->getHideObjectivePage(),
"integer").
97 " WHERE id = ".$ilDB->quote($this->getId(),
"integer")
104 function delete($a_delete_meta_data =
true)
108 parent::delete($a_delete_meta_data);
109 $ilDB->manipulate(
"DELETE FROM sahs_sc13_sco WHERE " 110 .
" id = " . $ilDB->quote($this->getId(),
"integer")
122 if ($this->
getSLMId() != $a_target_slm->getId())
124 $sco->setImportId(
"il__sco_".$this->
getId());
126 $sco->setSLMId($a_target_slm->getId());
127 $sco->setType($this->
getType());
130 $a_copied_nodes[$this->
getId()] = $sco->getId();
133 include_once(
"Services/MetaData/classes/class.ilMD.php");
135 $new_md = $md->cloneMD($a_target_slm->getId(), $sco->getId(), $this->
getType());
149 foreach ($objectives as $ob)
152 $mappings = $ob->getMappings();
154 foreach($mappings as $map)
156 $mapinfo .= $map->getTargetObjectiveID();
159 if ($mapinfo == null)
165 $mapinfo =
"global to ".$mapinfo;
168 if ($mapinfo ==
"local")
170 return $ob->getObjectiveID();
getMainObjectiveText()
Get main objective.
getSLMId()
Get ID of parent Scorm Learning Module Object.
create($a_upload=false, $a_template=false)
Create sco.
getDescription()
Get description.
__construct($a_slm_object, $a_id=0)
Constructor.
copy($a_target_slm)
Copy sco.
setHideObjectivePage($a_val)
Set hide objective page.
read()
Read data from database.
getHideObjectivePage()
Get hide objective page.
setType($a_type)
Set type.
Class ilSCORM2004Objective.