/**
  * copy page node
  */
 function copy($a_target_slm)
 {
     // copy page
     $slm_page = new ilSCORM2004PageNode($a_target_slm);
     $slm_page->setTitle($this->getTitle());
     $slm_page->setSLMId($a_target_slm->getId());
     $slm_page->setType($this->getType());
     $slm_page->setDescription($this->getDescription());
     $slm_page->setImportId("il__page_" . $this->getId());
     $slm_page->create(true);
     // setting "upload" flag to true prevents creating of meta data
     // 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(), $slm_page->getId(), $this->getType());
     // copy page content
     $page = $slm_page->getPageObject();
     // clone media objects, if source and target lm are not the same
     $clone_mobs = $this->getSLMId() == $a_target_slm->getId() ? false : true;
     $this->page_object->copy($page->getId(), $page->getParentType(), $page->getParentId(), $clone_mobs);
     //$page->setXMLContent($this->page_object->copyXMLContent($clone_mobs));
     //$page->buildDom();
     //$page->update();
     return $slm_page;
 }