예제 #1
0
 /**
  * Copy sco
  */
 function copy($a_target_slm)
 {
     $ass = new ilSCORM2004Asset($a_target_slm);
     $ass->setTitle($this->getTitle());
     if ($this->getSLMId() != $a_target_slm->getId()) {
         $ass->setImportId("il__ass_" . $this->getId());
     }
     $ass->setSLMId($a_target_slm->getId());
     $ass->setType($this->getType());
     $ass->setDescription($this->getDescription());
     $ass->create(true);
     $a_copied_nodes[$this->getId()] = $ass->getId();
     // copy meta data
     include_once "Services/MetaData/classes/class.ilMD.php";
     $md = new ilMD($this->getSLMId(), $this->getId(), $this->getType());
     $new_md = $md->cloneMD($a_target_slm->getId(), $ass->getId(), $this->getType());
     return $ass;
 }