Beispiel #1
0
 /**
  * Copies all relevant activity attributes from $new to $old
  *
  * @param ActivityModel $old
  * @param ActivityModel $new
  */
 protected function copyActivity(ActivityModel $old, ActivityModel $new)
 {
     $old->setName($new->getName());
     $old->setNameEn($new->getNameEn());
     $old->setBeginTime($new->getBeginTime());
     $old->setEndTime($new->getEndTime());
     $old->setSubscriptionDeadline($new->getSubscriptionDeadline());
     $old->setLocation($new->getLocation());
     $old->setLocationEn($new->getLocationEn());
     $old->setCosts($new->getCosts());
     $old->setCostsEn($new->getCostsEn());
     $old->setDescription($new->getDescription());
     $old->setDescriptionEn($new->getDescriptionEn());
     $old->setCreator($new->getCreator());
     $old->setCanSignUp($new->getCanSignUp());
     $old->setOnlyGEWIS($new->getOnlyGEWIS());
 }