/**
  * Clone assignments of exercise
  *
  * @param
  * @return
  */
 function cloneAssignmentsOfEphorus($a_old_eph_id, $a_new_eph_id)
 {
     $ass_data = ilEphAssignment::getAssignmentDataOfEphorus($a_old_eph_id);
     foreach ($ass_data as $d) {
         // clone assignment
         $new_ass = new ilEphAssignment();
         $new_ass->setEphorusId($a_new_eph_id);
         $new_ass->setTitle($d["title"]);
         $new_ass->setDeadline($d["deadline"]);
         $new_ass->setDeadline($d["deadline"]);
         $new_ass->setInstruction($d["instruction"]);
         $new_ass->setMandatory($d["mandatory"]);
         $new_ass->setOrderNr($d["order_val"]);
         $new_ass->setStartTime($d["start_time"]);
         $new_ass->save();
         // clone assignment files
         /* include_once("./Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus/classes/class.ilFSStorageEphorus.php");
                     $old_storage = new ilFSStorageEphorus($a_old_eph_id, (int) $d["id"]);
                     $new_storage = new ilFSStorageEphorus($a_new_eph_id, (int) $new_ass->getId());
                     $new_storage->create();
         
                     if (is_dir($old_storage->getPath()))
                     {
                         ilUtil::rCopy($old_storage->getPath(), $new_storage->getPath());
                     }*/
     }
 }