24 include_once
"./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);
287 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
289 $form->addCommandButton(
"saveSettings", $lng->txt(
"save"));
292 $tpl->setVariable(
"ADM_CONTENT", $form->getHTML());
302 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId())) $ilCtrl->redirect($this,
"settings");
303 $surveySetting =
new ilSetting(
"survey");
304 $surveySetting->set(
"unlimited_invitation", (
$_POST[
"unlimited_invitation"]) ?
"1" :
"0");
305 $surveySetting->set(
"use_anonymous_id", (
$_POST[
"use_anonymous_id"]) ?
"1" :
"0");
307 $ilCtrl->redirect($this,
"settings");
322 global $ilAccess,
$lng;
324 if ($ilAccess->checkAccess(
"read",
'',$this->object->getRefId()))
326 $tabs_gui->addTab(
"settings",
327 $lng->txt(
"settings"),
328 $this->ctrl->getLinkTarget($this,
"settings"));
337 $tabs_gui->addTab(
"templates",
338 $lng->txt(
"adm_settings_templates"),
339 $this->ctrl->getLinkTargetByClass(
"ilsettingstemplategui",
""));
341 if ($ilAccess->checkAccess(
"edit_permission",
'',$this->object->getRefId()))
343 $tabs_gui->addTab(
"perm_settings",
344 $lng->txt(
"perm_settings"),
345 $this->ctrl->getLinkTargetByClass(
'ilpermissiongui',
"perm"));
358 $lng->loadLanguageModule(
"survey");
360 include_once(
"./Services/Administration/classes/class.ilSettingsTemplateConfig.php");
363 $config->addHidableTab(
"survey_question_editor", $lng->txt(
"survey_question_editor_settings_template"));
364 $config->addHidableTab(
"constraints", $lng->txt(
"constraints"));
365 $config->addHidableTab(
"invitation", $lng->txt(
"invitation"));
366 $config->addHidableTab(
"meta_data", $lng->txt(
"meta_data"));
367 $config->addHidableTab(
"export", $lng->txt(
"export"));
372 $lng->txt(
"survey_question_pool_usage"),
377 "anonymization_options",
379 $lng->txt(
"survey_auth_mode"),
382 array(
'personalized' => $this->lng->txt(
"anonymize_personalized"),
383 'anonymize_without_code' => $this->lng->txt(
"anonymize_without_code"),
384 'anonymize_with_code' => $this->lng->txt(
"anonymize_with_code"))
390 $lng->txt(
"set_edit_mode"),
393 array(0 => $this->lng->txt(
"rte_editor_disabled"),
394 1 => $this->lng->txt(
"rte_editor_enabled"))
398 "enabled_start_date",
400 $lng->txt(
"start_date"),
407 $lng->txt(
"end_date"),
412 "show_question_titles",
414 $lng->txt(
"svy_show_questiontitles"),