Ejemplo n.º 1
0
 /**
  * Create sco
  */
 function create($a_upload = false, $a_template = false)
 {
     global $ilDB;
     parent::create($a_upload, $a_template);
     if (!$a_template) {
         $obj = new ilSCORM2004Objective($this->getId());
         //			$obj->setObjectiveID("Objective SCO ".$this->getId());
         $obj->setId("local_obj_" . $this->getID() . "_0");
         $obj->update();
     }
     $ilDB->manipulate("INSERT INTO sahs_sc13_sco " . "(id, hide_obj_page) VALUES (" . $ilDB->quote($this->getId(), "integer") . "," . $ilDB->quote($this->getHideObjectivePage(), "integer") . ")");
 }