24 include_once
"./Services/Object/classes/class.ilObjectGUI.php";
48 global $rbacsystem,
$lng;
51 $lng->loadLanguageModule(
"survey");
52 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,
false);
59 $next_class = $this->ctrl->getNextClass($this);
60 $cmd = $this->ctrl->getCmd();
65 case 'ilpermissiongui':
66 $ilTabs->activateTab(
"perm_settings");
67 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
69 $ret =& $this->ctrl->forwardCommand($perm_gui);
72 case 'ilsettingstemplategui':
73 $ilTabs->activateTab(
"templates");
74 include_once(
"./Services/Administration/classes/class.ilSettingsTemplateGUI.php");
76 $this->ctrl->forwardCommand($set_tpl_gui);
109 $this->ctrl->redirect($this);
114 unset(
$_SESSION[
"survey_adm_found_users"]);
115 if (strlen(
$_POST[
"search"]) < 2)
121 include_once
"./Services/User/classes/class.ilObjUser.php";
125 $_SESSION[
"survey_adm_found_users"] = $found;
133 $this->ctrl->redirect($this,
"specialusers");
185 global $ilAccess, $ilTabs;
264 $ilTabs->activateTab(
"settings");
266 $surveySetting =
new ilSetting(
"survey");
267 $unlimited_invitation = array_key_exists(
"unlimited_invitation",
$_GET) ?
$_GET[
"unlimited_invitation"] : $surveySetting->get(
"unlimited_invitation");
268 $use_anonymous_id = array_key_exists(
"use_anonymous_id",
$_GET) ?
$_GET[
"use_anonymous_id"] : $surveySetting->get(
"use_anonymous_id");
270 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
272 $form->setFormAction($ilCtrl->getFormAction($this));
273 $form->setTitle($lng->txt(
"survey_defaults"));
276 $enable =
new ilCheckboxInputGUI($lng->txt(
"survey_unlimited_invitation"),
"unlimited_invitation");
278 $enable->setInfo($lng->txt(
"survey_unlimited_invitation_desc"));
279 $form->addItem($enable);
284 $code->setInfo($lng->txt(
"use_anonymous_id_desc"));
285 $form->addItem($code);
290 $form->addItem($eval_skipped);
292 $eval_skipped->setValue($surveySetting->get(
"skipped_is_custom",
false)
296 $skipped_lng =
new ilRadioOption($lng->txt(
"svy_eval_skipped_value_lng"),
"lng");
297 $skipped_lng->
setInfo(sprintf($lng->txt(
"svy_eval_skipped_value_lng_info"), $lng->txt(
"skipped")));
298 $eval_skipped->addOption($skipped_lng);
299 $skipped_cust =
new ilRadioOption($lng->txt(
"svy_eval_skipped_value_custom"),
"cust");
300 $skipped_cust->
setInfo($lng->txt(
"svy_eval_skipped_value_custom_info"));
301 $eval_skipped->addOption($skipped_cust);
303 $skipped_cust_value =
new ilTextInputGUI($lng->txt(
"svy_eval_skipped_value_custom_value"),
"cust_value");
304 $skipped_cust_value->
setSize(15);
305 $skipped_cust_value->setValue($surveySetting->get(
"skipped_custom_value",
""));
306 $skipped_cust->addSubItem($skipped_cust_value);
308 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
310 $form->addCommandButton(
"saveSettings", $lng->txt(
"save"));
313 $tpl->setVariable(
"ADM_CONTENT", $form->getHTML());
323 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId())) $ilCtrl->redirect($this,
"settings");
324 $surveySetting =
new ilSetting(
"survey");
325 $surveySetting->set(
"unlimited_invitation", (
$_POST[
"unlimited_invitation"]) ?
"1" :
"0");
326 $surveySetting->set(
"use_anonymous_id", (
$_POST[
"use_anonymous_id"]) ?
"1" :
"0");
328 if(
$_POST[
"skcust"] ==
"lng")
330 $surveySetting->set(
"skipped_is_custom",
false);
334 $surveySetting->set(
"skipped_is_custom",
true);
335 $surveySetting->set(
"skipped_custom_value", trim(
$_POST[
"cust_value"]));
339 $ilCtrl->redirect($this,
"settings");
354 global $ilAccess,
$lng;
356 if ($ilAccess->checkAccess(
"read",
'',$this->object->getRefId()))
358 $tabs_gui->addTab(
"settings",
359 $lng->txt(
"settings"),
360 $this->ctrl->getLinkTarget($this,
"settings"));
369 $tabs_gui->addTab(
"templates",
370 $lng->txt(
"adm_settings_templates"),
371 $this->ctrl->getLinkTargetByClass(
"ilsettingstemplategui",
""));
373 if ($ilAccess->checkAccess(
"edit_permission",
'',$this->object->getRefId()))
375 $tabs_gui->addTab(
"perm_settings",
376 $lng->txt(
"perm_settings"),
377 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"));
390 $lng->loadLanguageModule(
"survey");
392 include_once(
"./Services/Administration/classes/class.ilSettingsTemplateConfig.php");
395 $config->addHidableTab(
"survey_question_editor", $lng->txt(
"survey_question_editor_settings_template"));
396 $config->addHidableTab(
"constraints", $lng->txt(
"constraints"));
397 $config->addHidableTab(
"invitation", $lng->txt(
"invitation"));
398 $config->addHidableTab(
"meta_data", $lng->txt(
"meta_data"));
399 $config->addHidableTab(
"export", $lng->txt(
"export"));
404 $lng->txt(
"survey_question_pool_usage"),
409 "anonymization_options",
411 $lng->txt(
"survey_auth_mode"),
414 array(
'personalized' => $this->lng->txt(
"anonymize_personalized"),
415 'anonymize_without_code' => $this->lng->txt(
"anonymize_without_code"),
416 'anonymize_with_code' => $this->lng->txt(
"anonymize_with_code"))
422 $lng->txt(
"set_edit_mode"),
425 array(0 => $this->lng->txt(
"rte_editor_disabled"),
426 1 => $this->lng->txt(
"rte_editor_enabled"))
430 "enabled_start_date",
432 $lng->txt(
"start_date"),
439 $lng->txt(
"end_date"),
444 "show_question_titles",
446 $lng->txt(
"svy_show_questiontitles"),