4 require_once
"./Services/Object/classes/class.ilObjectGUI.php";
6 require_once
'Modules/Test/classes/class.ilObjTest.php';
7 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionProcessLocker.php';
32 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,
false);
34 if (!$rbacsystem->checkAccess(
'read',$this->object->getRefId()))
36 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_read_assf"),$this->ilias->error_obj->WARNING);
39 $this->lng->loadLanguageModule(
'assessment');
48 global $rbacsystem, $ilTabs;
50 $next_class = $this->ctrl->getNextClass($this);
51 $cmd = $this->ctrl->getCmd();
56 case 'ilpermissiongui':
57 $ilTabs->activateTab(
'perm_settings');
58 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
60 $ret =& $this->ctrl->forwardCommand($perm_gui);
63 case 'ilsettingstemplategui':
64 $ilTabs->setTabActive(
"templates");
65 include_once(
"./Services/Administration/classes/class.ilSettingsTemplateGUI.php");
67 $this->ctrl->forwardCommand($set_tpl_gui);
70 case 'ilglobalunitconfigurationgui':
71 if(!$rbacsystem->checkAccess(
'write', $this->object->getRefId()))
73 $this->ilias->raiseError($this->lng->txt(
'permission_denied'), $this->ilias->error_obj->WARNING);
76 $ilTabs->setTabActive(
'units');
78 require_once
'Modules/TestQuestionPool/classes/class.ilGlobalUnitConfigurationGUI.php';
79 require_once
'Modules/TestQuestionPool/classes/class.ilUnitConfigurationRepository.php';
83 $this->ctrl->forwardCommand($gui);
116 $this->ctrl->redirect($this);
127 $ilTabs->setTabActive(
'settings');
134 $this->tpl->setVariable(
"ADM_CONTENT", $form->getHTML());
141 include_once
"./Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php";
142 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
144 $form->setFormAction($this->ctrl->getFormAction($this));
145 $form->setTableWidth(
"100%");
146 $form->setId(
"settings");
149 $header->setTitle($this->lng->txt(
'settings'));
150 $form->addItem($header);
153 $chb =
new ilCheckboxInputGUI($this->lng->txt(
'ass_process_lock'),
'ass_process_lock');
155 $chb->setInfo($this->lng->txt(
'ass_process_lock_desc'));
156 $form->addItem($chb);
157 $rg =
new ilRadioGroupInputGUI($this->lng->txt(
'ass_process_lock_mode'),
'ass_process_lock_mode');
160 $opt->
setInfo($this->lng->txt(
'ass_process_lock_mode_file_desc'));
161 $rg->addOption($opt);
163 $opt->
setInfo($this->lng->txt(
'ass_process_lock_mode_db_desc'));
164 $rg->addOption($opt);
167 $rg->setValue($this->object->getAssessmentProcessLockMode());
169 $chb->addSubItem($rg);
173 $header->setTitle($this->lng->txt(
"assf_questiontypes"));
174 $form->addItem($header);
177 $allowed =
new ilCheckboxGroupInputGUI($this->lng->txt(
'assf_allowed_questiontypes'),
"chb_allowed_questiontypes");
179 $forbidden_types = $this->
object->_getForbiddenQuestionTypes();
180 $allowedtypes = array();
181 foreach ($questiontypes as $qt)
183 if (!in_array($qt[
'question_type_id'], $forbidden_types)) array_push($allowedtypes, $qt[
'question_type_id']);
185 $allowed->setValue($allowedtypes);
186 foreach ($questiontypes as $type_name => $qtype)
188 $allowed->addOption(
new ilCheckboxOption($type_name, $qtype[
"question_type_id"]));
190 $allowed->setInfo($this->lng->txt(
'assf_allowed_questiontypes_desc'));
191 $form->addItem($allowed);
194 $manual =
new ilCheckboxGroupInputGUI($this->lng->txt(
'assessment_log_manual_scoring_activate'),
"chb_manual_scoring");
195 $manscoring = $this->
object->_getManualScoring();
197 foreach ($questiontypes as $type_name => $qtype)
199 $manual->addOption(
new ilCheckboxOption($type_name, $qtype[
"question_type_id"]));
201 $manual->setInfo($this->lng->txt(
'assessment_log_manual_scoring_desc'));
202 $form->addItem($manual);
205 $scoring_activation =
new ilCheckboxInputGUI($this->lng->txt(
'assessment_scoring_adjust'),
'chb_scoring_adjust');
206 $scoring_activation->
setChecked($this->object->getScoringAdjustmentEnabled());
207 $scoring_activation->setInfo($this->lng->txt(
'assessment_scoring_adjust_desc'));
208 $form->addItem($scoring_activation);
211 $scoring =
new ilCheckboxGroupInputGUI($this->lng->txt(
'assessment_log_scoring_adjustment_activate'),
"chb_scoring_adjustment");
212 $scoring_active = $this->
object->getScoringAdjustableQuestions();
213 $scoring->
setValue($scoring_active);
214 foreach ($questiontypes as $type_name => $qtype)
216 $scoring->addOption(
new ilCheckboxOption($type_name, $qtype[
"question_type_id"]));
218 $scoring->setInfo($this->lng->txt(
'assessment_log_scoring_adjustment_desc'));
219 $form->addItem($scoring);
221 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
223 $form->addCommandButton(
"saveSettings", $this->lng->txt(
"save"));
235 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId())) $this->ctrl->redirect($this,
'settings');
238 if(!$form->checkInput())
240 $form->setValuesByPost();
244 $this->
object->_setManualScoring(
$_POST[
"chb_manual_scoring"]);
245 include_once
"./Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php";
247 $forbidden_types = array();
248 foreach ($questiontypes as $name =>
$row)
250 if (!in_array(
$row[
"question_type_id"],
$_POST[
"chb_allowed_questiontypes"]))
252 array_push($forbidden_types,
$row[
"question_type_id"]);
255 $this->
object->_setForbiddenQuestionTypes($forbidden_types);
257 $this->
object->setScoringAdjustmentEnabled(
$_POST[
'chb_scoring_adjust']);
258 $scoring_types = array();
259 foreach ($questiontypes as $name =>
$row)
261 if (in_array(
$row[
"question_type_id"], (array)
$_POST[
"chb_scoring_adjustment"]))
263 array_push($scoring_types,
$row[
"question_type_id"]);
266 $this->
object->setScoringAdjustableQuestions($scoring_types);
268 if( !
$_POST[
'ass_process_lock'] )
274 $this->
object->setAssessmentProcessLockMode(
$_POST[
'ass_process_lock_mode']);
279 $this->ctrl->redirect($this,
'settings');
287 $from = mktime(
$_POST[
'log_from'][
'time'][
'h'],
$_POST[
'log_from'][
'time'][
'm'], 0,
$_POST[
'log_from'][
'date'][
'm'],
$_POST[
'log_from'][
'date'][
'd'],
$_POST[
'log_from'][
'date'][
'y']);
288 $until = mktime(
$_POST[
'log_until'][
'time'][
'h'],
$_POST[
'log_until'][
'time'][
'm'], 0,
$_POST[
'log_until'][
'date'][
'm'],
$_POST[
'log_until'][
'date'][
'd'],
$_POST[
'log_until'][
'date'][
'y']);
298 $from = mktime(
$_POST[
'log_from'][
'time'][
'h'],
$_POST[
'log_from'][
'time'][
'm'], 0,
$_POST[
'log_from'][
'date'][
'm'],
$_POST[
'log_from'][
'date'][
'd'],
$_POST[
'log_from'][
'date'][
'y']);
299 $until = mktime(
$_POST[
'log_until'][
'time'][
'h'],
$_POST[
'log_until'][
'time'][
'm'], 0,
$_POST[
'log_until'][
'date'][
'm'],
$_POST[
'log_until'][
'date'][
'd'],
$_POST[
'log_until'][
'date'][
'y']);
305 $this->lng->txt(
"assessment_log_datetime"),
306 $this->lng->txt(
"user"),
307 $this->lng->txt(
"assessment_log_text"),
308 $this->lng->txt(
"question")
310 include_once
"./Modules/Test/classes/class.ilObjTest.php";
311 include_once
"./Modules/TestQuestionPool/classes/class.assQuestion.php";
314 $log_output =& $this->
object->getLog($from, $until,
$test);
316 foreach ($log_output as $key =>
$log)
318 if (!array_key_exists(
$log[
"user_fi"], $users))
323 if (
$log[
"question_fi"] ||
$log[
"original_fi"])
326 if (strlen($title) == 0)
330 $title = $this->lng->txt(
"assessment_log_question") .
": " . $title;
335 array_push($csvrow, trim($users[
$log[
"user_fi"]][
"title"] .
" " . $users[
$log[
"user_fi"]][
"firstname"] .
" " . $users[
$log[
"user_fi"]][
"lastname"]));
336 array_push($csvrow, trim($log[
"logtext"]));
337 array_push($csvrow, $title);
341 foreach ($csv as
$row)
345 ilUtil::deliverData($csvoutput, str_replace(
" ",
"_",
"log_" . $from .
"_" . $until .
"_" . $available_tests[
$test]).
".csv");
351 public function logsObject($p_from = null, $p_until = null, $p_test = null)
354 $ilTabs->activateTab(
'logs');
356 $template =
new ilTemplate(
"tpl.assessment_logs.html", TRUE, TRUE,
"Modules/Test");
358 include_once
"./Modules/Test/classes/class.ilObjTest.php";
359 include_once
"./Modules/TestQuestionPool/classes/class.assQuestion.php";
361 if (count($available_tests) == 0)
367 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
369 $form->setFormAction($this->ctrl->getFormAction($this));
370 $form->setTableWidth(
"100%");
371 $form->setId(
"logs");
374 $header->setTitle($this->lng->txt(
"assessment_log"));
375 $form->addItem($header);
380 $from->setShowTime(
true);
382 $fromdate = ($p_from) ? $p_from : ((
$_GET[
'log_from']) ?
$_GET[
'log_from'] : mktime(0, 0, 0, 1, 1, $now[
'year']));
384 $form->addItem($from);
389 $until->setShowTime(
true);
390 $untildate = ($p_until) ? $p_until : ((
$_GET[
'log_until']) ?
$_GET[
'log_until'] : time());
392 $form->addItem($until);
395 $fortest =
new ilSelectInputGUI($this->lng->txt(
'assessment_log_for_test'),
"sel_test");
396 $sorted_options = array();
397 foreach($available_tests as $key => $value)
399 $sorted_options[] = array(
400 'title' =>
ilUtil::prepareFormOutput($value) .
" [" . $this->object->getNrOfLogEntries($key) .
" " . $this->lng->txt(
"assessment_log_log_entries") .
"]",
406 foreach($sorted_options as $option)
408 $options[$option[
'key']] = $option[
'title'];
411 $p_test = ($p_test) ? $p_test :
$_GET[
'sel_test'];
412 if ($p_test) $fortest->setValue($p_test);
413 $form->addItem($fortest);
414 $this->ctrl->setParameter($this,
'sel_test', $p_test);
415 $this->ctrl->setParameter($this,
'log_until', $untildate);
416 $this->ctrl->setParameter($this,
'log_from', $fromdate);
417 $form->addCommandButton(
"showLog", $this->lng->txt(
"show"));
418 $form->addCommandButton(
"exportLog", $this->lng->txt(
"export"));
419 $template->setVariable(
"FORM", $form->getHTML());
423 include_once
"./Modules/Test/classes/tables/class.ilAssessmentFolderLogTableGUI.php";
425 $log_output =& $this->
object->getLog($fromdate, $untildate, $p_test);
426 $table_gui->setData($log_output);
427 $template->setVariable(
'LOG', $table_gui->getHTML());
429 $this->tpl->setVariable(
"ADM_CONTENT", $template->get());
437 if (is_array(
$_POST[
"chb_test"]) && (count(
$_POST[
"chb_test"])))
439 $this->
object->deleteLogEntries(
$_POST[
"chb_test"]);
454 global $ilAccess, $ilTabs;
456 $ilTabs->activateTab(
'logs');
458 $a_write_access = ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId())) ?
true :
false;
460 include_once
"./Modules/Test/classes/tables/class.ilAssessmentFolderLogAdministrationTableGUI.php";
462 include_once
"./Modules/Test/classes/class.ilObjTest.php";
465 foreach ($available_tests as
$obj_id => $title)
467 $nr = $this->
object->getNrOfLogEntries(
$obj_id);
468 array_push(
$data, array(
"title" => $title,
"nr" => $nr,
"id" =>
$obj_id));
470 $table_gui->setData(
$data);
471 $this->tpl->setVariable(
'ADM_CONTENT', $table_gui->getHTML());
484 $ilTabs->addSubTabTarget(
"settings",
485 $this->ctrl->getLinkTarget($this,
"showLogSettings"),
486 array(
"saveLogSettings",
"showLogSettings")
490 $ilTabs->addSubTabTarget(
"ass_log_output",
491 $this->ctrl->getLinkTarget($this,
"logs"),
492 array(
"logs",
"showLog",
"exportLog")
496 $ilTabs->addSubTabTarget(
"ass_log_admin",
497 $this->ctrl->getLinkTarget($this,
"logAdmin"),
498 array(
"logAdmin",
"deleteLog"),
511 $ilTabs->activateTab(
'defaults');
513 $assessmentSetting =
new ilSetting(
"assessment");
514 $use_javascript = array_key_exists(
"use_javascript",
$_GET) ?
$_GET[
"use_javascript"] : $assessmentSetting->get(
"use_javascript");
515 $imap_line_color = array_key_exists(
"imap_line_color",
$_GET) ?
$_GET[
"imap_line_color"] : $assessmentSetting->get(
"imap_line_color");
516 if (strlen($imap_line_color) == 0) $imap_line_color =
"FF0000";
518 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
520 $form->setFormAction($ilCtrl->getFormAction($this));
521 $form->setTitle($lng->txt(
"assessment_defaults"));
524 $enable =
new ilCheckboxInputGUI($lng->txt(
"assessment_use_javascript"),
"use_javascript");
526 $enable->setInfo($lng->txt(
"assessment_use_javascript_desc"));
527 $form->addItem($enable);
530 $linepicker->
setValue($imap_line_color);
531 $form->addItem($linepicker);
533 if (@file_exists(
"./Modules/Test/classes/class.ilTestResultsToXML.php"))
536 $user_criteria = array_key_exists(
"user_criteria",
$_GET) ?
$_GET[
"user_criteria"] : $assessmentSetting->get(
"user_criteria");
537 $userCriteria =
new ilSelectInputGUI($this->lng->txt(
"user_criteria"),
"user_criteria");
538 $userCriteria->
setInfo($this->lng->txt(
"user_criteria_desc"));
539 $userCriteria->setRequired(
true);
542 $userCriteria->setValue(($isSingleline) ? 0 : 1);
544 $manager = $ilDB->db->loadModule(
'Manager');
546 $fields = array(
'usr_id',
'login',
'email',
'matriculation',
'ext_account');
547 $usr_fields = array();
548 foreach ($fields as $field)
550 $usr_fields[$field] = $field;
552 $userCriteria->setOptions($usr_fields);
553 $userCriteria->setValue($user_criteria);
554 $form->addItem($userCriteria);
557 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
559 $form->addCommandButton(
"saveDefaults", $lng->txt(
"save"));
563 $tpl->setVariable(
"ADM_CONTENT", $form->getHTML());
573 $assessmentSetting =
new ilSetting(
"assessment");
574 if (
$_POST[
"use_javascript"])
576 $assessmentSetting->set(
"use_javascript",
"1");
580 $assessmentSetting->set(
"use_javascript",
"0");
582 if (strlen(
$_POST[
"imap_line_color"]) == 6)
584 $assessmentSetting->set(
"imap_line_color",
$_POST[
"imap_line_color"]);
586 if (@file_exists(
"./Modules/Test/classes/class.ilTestResultsToXML.php"))
588 $assessmentSetting->set(
"user_criteria",
$_POST[
"user_criteria"]);
591 $ilCtrl->redirect($this,
"defaults");
602 global $rbacsystem,
$lng;
604 switch ($this->ctrl->getCmd())
606 case "saveLogSettings":
607 case "showLogSettings":
617 if ($rbacsystem->checkAccess(
"visible,read",$this->object->getRefId()))
619 $tabs_gui->addTarget(
"settings",
620 $this->ctrl->getLinkTarget($this,
"settings"), array(
"settings",
"",
"view"),
"",
"");
622 $tabs_gui->addTarget(
"logs",
623 $this->ctrl->getLinkTarget($this,
"showLogSettings"),
624 array(
'saveLogSettings',
'showLogSettings',
"logs",
"showLog",
"exportLog",
"logAdmin",
"deleteLog"),
627 $tabs_gui->addTarget(
"defaults",
628 $this->ctrl->getLinkTarget($this,
"defaults"), array(
"defaults",
"saveDefaults"),
"",
"");
630 $tabs_gui->addTab(
"templates",
631 $lng->txt(
"adm_settings_templates"),
632 $this->ctrl->getLinkTargetByClass(
"ilsettingstemplategui",
""));
635 if ($rbacsystem->checkAccess(
"write",$this->object->getRefId()))
637 $tabs_gui->addTarget(
'units', $this->ctrl->getLinkTargetByClass(
'ilGlobalUnitConfigurationGUI',
''),
'',
'ilglobalunitconfigurationgui');
640 if ($rbacsystem->checkAccess(
'edit_permission',$this->object->getRefId()))
642 $tabs_gui->addTarget(
"perm_settings",
643 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
657 $lng->loadLanguageModule(
"tst");
658 $lng->loadLanguageModule(
"assessment");
660 include_once(
"./Services/Administration/classes/class.ilSettingsTemplateConfig.php");
663 $config->addHidableTab(
"questions", $lng->txt(
'edit_test_questions'));
664 $config->addHidableTab(
"mark_schema", $lng->txt(
'settings') .
' - ' . $lng->txt(
"mark_schema"));
665 $config->addHidableTab(
"certificate", $lng->txt(
'settings') .
' - ' . $lng->txt(
"certificate"));
666 $config->addHidableTab(
"defaults", $lng->txt(
'settings') .
' - ' . $lng->txt(
"defaults"));
668 $config->addHidableTab(
"learning_progress", $lng->txt(
"learning_progress"));
669 $config->addHidableTab(
"manscoring", $lng->txt(
"manscoring"));
670 $config->addHidableTab(
"history", $lng->txt(
"history"));
671 $config->addHidableTab(
"meta_data", $lng->txt(
"meta_data"));
672 $config->addHidableTab(
"export", $lng->txt(
"export"));
673 $config->addHidableTab(
"permissions", $lng->txt(
"permission"));
683 $lng->txt(
"tst_anonymity"),
687 '0' => $lng->txt(
"tst_anonymity_no_anonymization"),
688 '1' => $lng->txt(
"tst_anonymity_anonymous_test"),
695 $lng->txt(
"tst_title_output"),
699 '0' => $lng->txt(
"test_enable_view_table"),
700 '1' => $lng->txt(
"test_enable_view_express"),
701 '2' => $lng->txt(
"test_enable_view_both"),
708 $lng->txt(
"tst_question_set_type"),
721 $lng->txt(
"test_question_pool_usage"),
729 $lng->txt(
"showinfo"),
734 "showfinalstatement",
736 $lng->txt(
"final_statement_show"),
744 $lng->txt(
"tst_nr_of_tries"),
751 "chb_processing_time",
753 $lng->txt(
"tst_processing_time"),
760 $lng->txt(
"tst_starting_time"),
767 $lng->txt(
"tst_ending_time"),
774 $lng->txt(
"tst_password"),
782 "chb_use_previous_answers",
784 $lng->txt(
"tst_use_previous_answers"),
790 $lng->txt(
"forcejs_short"),
797 $lng->txt(
"tst_title_output"),
801 '0' => $lng->txt(
"test_enable_view_table"),
802 '1' => $lng->txt(
"test_enable_view_express"),
803 '2' => $lng->txt(
"test_enable_view_both"),
812 $lng->txt(
"tst_postpone"),
816 "chb_shuffle_questions",
818 $lng->txt(
"tst_shuffle_questions"),
824 $lng->txt(
"tst_show_summary"),
831 $lng->txt(
"question_marking"),
837 $lng->txt(
"tst_show_cancel"),
846 $lng->txt(
"tst_finish_notification"),
850 '0' => $lng->txt(
"tst_finish_notification_no"),
851 '1' => $lng->txt(
"tst_finish_notification_simple"),
852 '2' => $lng->txt(
"tst_finish_notification_advanced"),
859 $lng->txt(
"mailnottype"),
878 $lng->txt(
"participants_invitation"),
885 $lng->txt(
"tst_allowed_users"),
891 "allowedUsersTimeGap",
893 $lng->txt(
"tst_allowed_users_time_gap"),
905 $lng->txt(
"tst_text_count_system"),
909 '0' => $lng->txt(
"tst_count_partial_solutions"),
910 '1' => $lng->txt(
"tst_count_correct_solutions"),
917 $lng->txt(
"tst_score_mcmr_questions"),
921 '0' => $lng->txt(
"tst_score_mcmr_zero_points_when_unanswered"),
922 '1' => $lng->txt(
"tst_score_mcmr_use_scoring_system"),
929 $lng->txt(
"tst_score_cutting"),
933 '0' => $lng->txt(
"tst_score_cut_question"),
934 '1' => $lng->txt(
"tst_score_cut_test"),
941 $lng->txt(
"tst_pass_scoring"),
945 '0' => $lng->txt(
"tst_pass_last_pass"),
946 '1' => $lng->txt(
"tst_pass_best_pass"),
953 $lng->txt(
"tst_instant_feedback"),
957 'instant_feedback_answer' => $lng->txt(
"tst_instant_feedback_answer_specific"),
958 'instant_feedback_points' => $lng->txt(
"tst_instant_feedback_results"),
959 'instant_feedback_solution' => $lng->txt(
"tst_instant_feedback_solution"),
966 $lng->txt(
"tst_results_access"),
970 '1' => $lng->txt(
"tst_results_access_finished"),
971 '2' => $lng->txt(
"tst_results_access_always"),
972 '3' => $lng->txt(
"tst_results_access_never"),
973 '4' => $lng->txt(
"tst_results_access_date"),
980 $lng->txt(
"tst_results_print_best_solution"),
985 "results_presentation",
987 $lng->txt(
"tst_results_presentation"),
991 'pass_details' => $lng->txt(
"tst_show_pass_details"),
992 'solution_details' => $lng->txt(
"tst_show_solution_details"),
993 'solution_printview' => $lng->txt(
"tst_show_solution_printview"),
994 'solution_feedback' => $lng->txt(
"tst_show_solution_feedback"),
995 'solution_answers_only' => $lng->txt(
"tst_show_solution_answers_only"),
996 'solution_signature' => $lng->txt(
"tst_show_solution_signature"),
997 'solution_suggested' => $lng->txt(
"tst_show_solution_suggested"),
1001 $config->addSetting(
1004 $lng->txt(
"tst_export_settings"),
1015 $this->tabs_gui->activateTab(
'logs');
1019 $form = $this->getLogSettingsForm();
1020 $form->setValuesByArray(array(
1021 'chb_assessment_logging' => $this->object->_enabledAssessmentLogging(),
1022 'reporting_language' => $this->
object->_getLogLanguage()
1026 $this->tpl->setContent($form->getHTML());
1032 protected function saveLogSettingsObject()
1039 if(!$ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
1041 $this->ilias->raiseError($this->lng->txt(
"permission_denied"),$this->ilias->error_obj->WARNING);
1044 $form = $this->getLogSettingsForm();
1045 if($form->checkInput())
1047 $this->
object->_enableAssessmentLogging((
int)$form->getInput(
'chb_assessment_logging'));
1048 $this->
object->_setLogLanguage($form->getInput(
'reporting_language'));
1049 $this->
object->update();
1053 $form->setValuesByPost();
1060 protected function getLogSettingsForm()
1067 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
1069 $form->setFormAction($this->ctrl->getFormAction($this,
'saveLogSettings'));
1070 $form->setTitle($this->lng->txt(
'assessment_log_logging'));
1073 $logging->setValue(1);
1074 $logging->setOptionTitle($this->lng->txt(
'activate_assessment_logging'));
1075 $form->addItem($logging);
1077 $reporting =
new ilSelectInputGUI($this->lng->txt(
'assessment_settings_reporting_language'),
'reporting_language');
1078 $languages = $this->lng->getInstalledLanguages();
1079 $this->lng->loadLanguageModule(
'meta');
1081 foreach($languages as
$lang)
1086 $form->addItem($reporting);
1088 if($ilAccess->checkAccess(
'write',
'', $this->object->getRefId()))
1090 $form->addCommandButton(
'saveLogSettings', $this->lng->txt(
'save'));