示例#1
0
 /**
  * Do Cloning
  */
 public function doClone($new_obj, $a_target_id, $a_copy_id)
 {
     global $ilDB, $ilUser;
     $GLOBALS['ilLog']->write(__METHOD__ . ': Start cloning');
     $new_obj->update();
     try {
         $new_obj->initVitero();
         $new_obj->addParticipants(array($ilUser->getId()), ilObjVitero::ADMIN);
         $booking_connector = new ilViteroBookingSoapConnector();
         $booking_connector->copyBookings($this->getVGroupId(), $new_obj->getVGroupId());
     } catch (ilViteroConnectorException $e) {
         $GLOBALS['ilLog']->write(__METHOD__ . ': Init vitero group failed with message code ' . $e->getCode());
     }
 }