/**
  * save object
  * @access	public
  */
 function afterSave(ilObject $a_new_object)
 {
     $tpl = $this->getDidacticTemplateVar("svytpl");
     if ($tpl) {
         $a_new_object->applySettingsTemplate($tpl);
     }
     $a_new_object->set360Mode((bool) $this->getDidacticTemplateVar("svy360"));
     if ($a_new_object->get360Mode()) {
         // this should rather be ilObjSurvey::ANONYMIZE_ON - see ilObjSurvey::getUserDataFromActiveId()
         $a_new_object->setAnonymize(ilObjSurvey::ANONYMIZE_CODE_ALL);
         $a_new_object->setEvaluationAccess(ilObjSurvey::EVALUATION_ACCESS_PARTICIPANTS);
     }
     $a_new_object->saveToDB();
     // always send a message
     ilUtil::sendSuccess($this->lng->txt("object_added"), true);
     ilUtil::redirect("ilias.php?baseClass=ilObjSurveyGUI&ref_id=" . $a_new_object->getRefId() . "&cmd=properties");
 }
 /**
  * save object
  * @access	public
  */
 function afterSave(ilObject $a_new_object)
 {
     $tpl = $this->getDidacticTemplateVar("svytpl");
     if ($tpl) {
         $a_new_object->applySettingsTemplate($tpl);
     }
     // always send a message
     ilUtil::sendSuccess($this->lng->txt("object_added"), true);
     ilUtil::redirect("ilias.php?baseClass=ilObjSurveyGUI&ref_id=" . $a_new_object->getRefId() . "&cmd=properties");
 }