41 $this->
object =& $a_object;
42 if ($this->object->get360Mode())
53 include_once(
"./Services/Skill/classes/class.ilSkillManagementSettings.php");
55 if ($this->object->get360SkillService() && $skmg_set->isActivated())
57 $cmd = $this->ctrl->getCmd(
"competenceEval");
61 $cmd = $this->ctrl->getCmd(
"evaluation");
64 $next_class = $this->ctrl->getNextClass($this);
70 $this->setEvalSubTabs();
92 include_once(
"./Services/Skill/classes/class.ilSkillManagementSettings.php");
94 if ($this->object->get360SkillService() && $skmg_set->isActivated())
96 $ilTabs->addSubTabTarget(
97 "svy_eval_competences",
98 $this->ctrl->getLinkTarget($this,
"competenceEval"),
99 array(
"competenceEval")
103 $ilTabs->addSubTabTarget(
104 "svy_eval_cumulated",
105 $this->ctrl->getLinkTarget($this,
"evaluation"),
106 array(
"evaluation",
"checkEvaluationAccess")
109 $ilTabs->addSubTabTarget(
111 $this->ctrl->getLinkTarget($this,
"evaluationdetails"),
112 array(
"evaluationdetails")
115 if ($ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
117 $ilTabs->addSubTabTarget(
119 $this->ctrl->getLinkTarget($this,
"evaluationuser"),
120 array(
"evaluationuser")
133 $this->appr_id = $a_val;
158 $req_appr_id = $ilUser->getId();
162 $req_appr_id = (int)
$_REQUEST[
"appr_id"];
166 if ($req_appr_id > 0)
171 foreach($this->object->getAppraiseesData() as $item)
173 if ($item[
"closed"] &&
174 ($item[
"user_id"] == $ilUser->getId() ||
175 $rbacsystem->checkAccess(
"write", $this->object->getRefId()) ||
178 $valid[] = $item[
"user_id"];
181 if(in_array($req_appr_id,
$valid))
192 $this->ctrl->setParameter($this,
"appr_id",
$appr_id);
208 if($this->object->getAnonymize() == 1 &&
214 include_once
"Modules/Survey/classes/class.ilObjSurveyAccess.php";
217 if($this->object->getAnonymize() == 1)
224 if($this->object->getAnonymize() == 1)
227 $surveycode = $this->
object->getUserAccessCode($ilUser->getId());
228 if ($this->object->isAnonymizedParticipant($surveycode))
243 $this->tpl->setVariable(
"TABS",
"");
244 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.il_svy_svy_evaluation_checkaccess.html",
"Modules/Survey");
245 $this->tpl->setCurrentBlock(
"adm_content");
246 $this->tpl->setVariable(
"AUTHENTICATION_NEEDED", $this->lng->txt(
"svy_check_evaluation_authentication_needed"));
247 $this->tpl->setVariable(
"FORM_ACTION", $this->ctrl->getFormAction($this,
"checkEvaluationAccess"));
248 $this->tpl->setVariable(
"EVALUATION_CHECKACCESS_INTRODUCTION", $this->lng->txt(
"svy_check_evaluation_access_introduction"));
249 $this->tpl->setVariable(
"VALUE_CHECK", $this->lng->txt(
"ok"));
250 $this->tpl->setVariable(
"VALUE_CANCEL", $this->lng->txt(
"cancel"));
251 $this->tpl->setVariable(
"TEXT_SURVEY_CODE", $this->lng->txt(
"survey_code"));
252 $this->tpl->parseCurrentBlock();
255 $_SESSION[
"anon_evaluation_access"] = null;
268 $surveycode =
$_POST[
"surveycode"];
269 if ($this->object->isAnonymizedParticipant($surveycode))
292 include_once
"./Services/Utilities/classes/class.ilUtil.php";
294 $path = $tree->getPathFull($this->object->getRefID());
295 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
297 $ilCtrl->redirectByClass(
"ilrepositorygui",
"frameset");
315 $format_percent =
"";
316 $format_datetime =
"";
319 switch (
$_POST[
"export_format"])
322 include_once
"./Services/Excel/classes/class.ilExcelWriterAdapter.php";
325 $workbook = $adapter->getWorkbook();
326 $workbook->setVersion(8);
328 $format_bold =& $workbook->addFormat();
329 $format_bold->setBold();
330 $format_percent =& $workbook->addFormat();
331 $format_percent->setNumFormat(
"0.00%");
332 $format_datetime =& $workbook->addFormat();
333 $format_datetime->setNumFormat(
"DD/MM/YYYY hh:mm:ss");
334 $format_title =& $workbook->addFormat();
335 $format_title->setBold();
336 $format_title->setColor(
'black');
337 $format_title->setPattern(1);
338 $format_title->setFgColor(
'silver');
339 $format_title->setAlign(
'center');
341 include_once (
"./Services/Excel/classes/class.ilExcelUtils.php");
342 $mainworksheet =& $workbook->addWorksheet();
344 switch (
$_POST[
'export_label'])
381 switch (
$_POST[
'export_label'])
384 array_push($csvrow, $this->lng->txt(
"label"));
387 array_push($csvrow, $this->lng->txt(
"title"));
390 array_push($csvrow, $this->lng->txt(
"title"));
391 array_push($csvrow, $this->lng->txt(
"label"));
394 array_push($csvrow, $this->lng->txt(
"question"));
395 array_push($csvrow, $this->lng->txt(
"question_type"));
396 array_push($csvrow, $this->lng->txt(
"users_answered"));
397 array_push($csvrow, $this->lng->txt(
"users_skipped"));
398 array_push($csvrow, $this->lng->txt(
"mode"));
403 array_push($csvrow, $this->lng->txt(
"mode_nr_of_selections"));
404 array_push($csvrow, $this->lng->txt(
"median"));
405 array_push($csvrow, $this->lng->txt(
"arithmetic_mean"));
406 array_push($csvfile, $csvrow);
410 $finished_ids = null;
411 if($this->object->get360Mode())
416 $this->ctrl->redirect($this, $details ?
"evaluationdetails" :
"evaluation");
418 $finished_ids = $this->
object->getFinishedIdsForAppraiseeId(
$appr_id);
419 if(!
sizeof($finished_ids))
421 $finished_ids = array(-1);
425 $questions =& $this->
object->getSurveyQuestions();
427 foreach ($questions as $data)
429 include_once
"./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php";
431 $eval = $this->
object->getCumulatedResults($question, $finished_ids);
432 switch (
$_POST[
"export_format"])
435 $counter = $question->setExportCumulatedXLS($mainworksheet, $format_title, $format_bold, $eval, $counter,
$_POST[
'export_label']);
439 $csvrows =& $question->setExportCumulatedCVS($eval,
$_POST[
'export_label']);
440 foreach ($csvrows as $csvrow)
442 array_push($csvfile, $csvrow);
448 switch (
$_POST[
"export_format"])
451 $question->setExportDetailsXLS($workbook, $format_title, $format_bold, $eval,
$_POST[
'export_label']);
460 $type = $this->lng->txt(
"svy_eval_cumulated");
464 $type = $this->lng->txt(
"svy_eval_detail");
466 $surveyname = $this->
object->getTitle().
" ".$type.
" ".date(
"Y-m-d");
467 $surveyname = preg_replace(
"/\s/",
"_", trim($surveyname));
470 switch (
$_POST[
"export_format"])
482 foreach ($csvfile as $csvrow)
484 $csvrow =& $this->
object->processCSVRow($csvrow, TRUE,
$separator);
487 include_once
"./Services/Utilities/classes/class.ilUtil.php";
496 if (strlen(
$_POST[
"export_format"]))
503 $this->ctrl->redirect($this,
'evaluation');
509 if (strlen(
$_POST[
"export_format"]))
516 $this->ctrl->redirect($this,
'evaluation');
523 $this->ctrl->redirect($this,
'evaluation');
528 global $rbacsystem, $ilToolbar;
531 if (!$rbacsystem->checkAccess(
"write",
$_GET[
"ref_id"]))
533 if (!$rbacsystem->checkAccess(
"read",
$_GET[
"ref_id"]))
539 switch ($this->object->getEvaluationAccess())
556 $ilToolbar->setFormAction($this->ctrl->getFormAction($this));
557 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
559 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.il_svy_svy_evaluation.html",
"Modules/Survey");
563 if($this->object->get360Mode())
569 if(!$this->object->get360Mode() ||
$appr_id)
572 $format->setOptions(array(
573 self::TYPE_XLS => $this->lng->txt(
'exp_type_excel'),
576 $ilToolbar->addInputItem($format);
579 $label->setOptions(array(
580 'label_only' => $this->lng->txt(
'export_label_only'),
581 'title_only' => $this->lng->txt(
'export_title_only'),
582 'title_label'=> $this->lng->txt(
'export_title_label')
584 $ilToolbar->addInputItem($label);
586 include_once
"Services/UIComponent/Button/classes/class.ilSubmitButton.php";
588 $button->setCaption(
"export");
591 $button->setCommand(
'exportDetailData');
595 $button->setCommand(
'exportData');
597 $button->setOmitPreventDoubleSubmission(
true);
598 $ilToolbar->addButtonInstance($button);
600 $finished_ids = null;
603 $finished_ids = $this->
object->getFinishedIdsForAppraiseeId(
$appr_id);
604 if(!
sizeof($finished_ids))
606 $finished_ids = array(-1);
610 $questions =& $this->
object->getSurveyQuestions();
613 $last_questionblock_id = null;
614 foreach ($questions as $qdata)
616 include_once
"./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php";
618 $question = $question_gui->object;
619 $c = $question->getCumulatedResultData($this->object->getSurveyId(), $counter, $finished_ids);
624 $main = array_shift($c);
625 $main[
"subitems"] = $c;
626 array_push($data, $main);
630 array_push($data, $c);
636 if($qdata[
"questionblock_id"] && $qdata[
"questionblock_id"] != $last_questionblock_id)
638 $qblock = $this->
object->getQuestionblock($qdata[
"questionblock_id"]);
639 if($qblock[
"show_blocktitle"])
641 $this->tpl->setCurrentBlock(
"detail_qblock");
642 $this->tpl->setVariable(
"BLOCKTITLE", $qdata[
"questionblock_title"]);
643 $this->tpl->parseCurrentBlock();
646 $last_questionblock_id = $qdata[
"questionblock_id"];
649 $detail = $question_gui->getCumulatedResultsDetails($this->object->getSurveyId(), $counter-1, $finished_ids);
650 $this->tpl->setCurrentBlock(
"detail");
651 $this->tpl->setVariable(
"DETAIL", $detail);
652 $this->tpl->parseCurrentBlock();
657 include_once
"./Modules/Survey/classes/tables/class.ilSurveyResultsCumulatedTableGUI.php";
659 $table_gui->setData($data);
660 $this->tpl->setVariable(
'CUMULATED', $table_gui->getHTML());
661 $this->tpl->addCss(
"./Modules/Survey/templates/default/survey_print.css",
"print");
662 $this->tpl->setVariable(
'FORMACTION', $this->ctrl->getFormAction($this,
'evaluation'));
673 global $ilToolbar, $rbacsystem;
675 if($this->object->get360Mode())
682 $options[
""] = $this->lng->txt(
"please_select");
685 foreach($this->object->getAppraiseesData() as $item)
689 $options[$item[
"user_id"]] = $item[
"login"];
696 if ($rbacsystem->checkAccess(
"write", $this->object->getRefId()) ||
699 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
700 $appr =
new ilSelectInputGUI($this->lng->txt(
"survey_360_appraisee"),
"appr_id");
703 $ilToolbar->addInputItem($appr,
true);
705 include_once
"Services/UIComponent/Button/classes/class.ilSubmitButton.php";
707 $button->setCaption(
"survey_360_select_appraisee");
708 $button->setCommand($this->ctrl->getCmd());
709 $ilToolbar->addButtonInstance($button);
713 $ilToolbar->addSeparator();
743 $questions = array();
744 $questions =& $this->
object->getSurveyQuestions(
true);
745 array_push($csvrow, $this->lng->txt(
"lastname"));
746 array_push($csvrow, $this->lng->txt(
"firstname"));
747 array_push($csvrow, $this->lng->txt(
"login"));
748 array_push($csvrow, $this->lng->txt(
'workingtime'));
749 array_push($csvrow, $this->lng->txt(
'survey_results_finished'));
750 array_push($csvrow2,
"");
751 array_push($csvrow2,
"");
752 array_push($csvrow2,
"");
753 array_push($csvrow2,
"");
754 array_push($csvrow2,
"");
755 if ($this->object->canExportSurveyCode())
757 array_push($csvrow, $this->lng->txt(
"codes"));
758 array_push($csvrow2,
"");
768 foreach ($questions as $question_id => $question_data)
770 include_once
"./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php";
772 switch ($export_label)
775 $question->addUserSpecificResultsExportTitles($csvrow,
true);
779 $question->addUserSpecificResultsExportTitles($csvrow,
false);
783 $question->addUserSpecificResultsExportTitles($csvrow,
false);
784 $question->addUserSpecificResultsExportTitles($csvrow2,
true,
false);
788 $questions[$question_data[
"question_id"]] = $question;
790 array_push($csvfile, $csvrow);
791 if(
sizeof($csvrow2) && implode(
"", $csvrow2))
793 array_push($csvfile, $csvrow2);
797 $participants =& $this->
object->getSurveyFinishedIds();
801 $participants = $finished_ids;
803 $finished_data = array();
804 foreach($this->object->getSurveyParticipants($participants) as $item)
806 $finished_data[$item[
"active_id"]] = $item;
808 foreach ($participants as $user_id)
815 $resultset =& $this->
object->getEvaluationByUser($questions, $user_id);
819 array_push($csvrow, (trim($resultset[
"lastname"]))
820 ? $resultset[
"lastname"]
821 : $resultset[
"name"]);
822 array_push($csvrow, $resultset[
"firstname"]);
824 array_push($csvrow, $resultset[
"login"]);
825 if ($this->object->canExportSurveyCode())
827 array_push($csvrow, $user_id);
835 $wt = $this->
object->getWorkingtimeForParticipant($user_id);
836 array_push($csvrow, $wt);
838 $finished = $finished_data[$user_id];
839 if((
bool)$finished[
"finished"])
841 if($export_format == self::TYPE_XLS)
844 $date = strftime(
"%Y-%m-%d %H:%M:%S", $finished[
"finished_tstamp"]);
845 if(preg_match(
"/(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})/", $date, $matches))
847 array_push($csvrow, array(
"excelTime",
ilUtil::excelTime($matches[1],$matches[2],$matches[3],$matches[4],$matches[5],$matches[6])));
857 array_push($csvrow,
"-");
860 foreach ($questions as $question_id => $question)
862 $question->addUserSpecificResultsData($csvrow, $resultset);
865 array_push($csvfile, $csvrow);
869 $surveyname = $this->
object->getTitle().
" ".$this->lng->txt(
"svy_eval_user").
" ".date(
"Y-m-d");
870 $surveyname = preg_replace(
"/\s/",
"_", trim($surveyname));
873 switch ($export_format)
876 include_once
"./Services/Excel/classes/class.ilExcelWriterAdapter.php";
879 $workbook = $adapter->getWorkbook();
880 $workbook->setVersion(8);
882 $format_bold =& $workbook->addFormat();
883 $format_bold->setBold();
884 $format_percent =& $workbook->addFormat();
885 $format_percent->setNumFormat(
"0.00%");
886 $format_datetime =& $workbook->addFormat();
887 $format_datetime->setNumFormat(
"DD/MM/YYYY hh:mm:ss");
888 $format_title =& $workbook->addFormat();
889 $format_title->setBold();
890 $format_title->setColor(
'black');
891 $format_title->setPattern(1);
892 $format_title->setFgColor(
'silver');
893 $format_title_plain =& $workbook->addFormat();
894 $format_title_plain->setColor(
'black');
895 $format_title_plain->setPattern(1);
896 $format_title_plain->setFgColor(
'silver');
898 $pages = floor((count($csvfile[0])) / 250) + 1;
899 $worksheets = array();
900 for ($i = 0; $i < $pages; $i++)
902 $worksheets[$i] =& $workbook->addWorksheet();
905 include_once
"./Services/Excel/classes/class.ilExcelUtils.php";
906 $contentstartrow = 0;
907 foreach ($csvfile as $csvrow)
913 $mainworksheet =& $worksheets[$worksheet];
914 foreach ($csvrow as $text)
919 foreach ($text as $string)
923 $contentstartrow = max($contentstartrow, $textcount);
935 $mainworksheet =& $worksheets[$worksheet];
939 $row = $contentstartrow;
944 $mainworksheet =& $worksheets[$worksheet];
945 foreach ($csvrow as $text)
947 if (is_array($text) && $text[0] ==
"excelTime")
949 $mainworksheet->write(
$row, $col++, $text[1], $format_datetime);
951 else if (is_numeric($text))
953 $mainworksheet->writeNumber(
$row, $col++, $text);
963 $mainworksheet =& $worksheets[$worksheet];
978 foreach ($csvfile as $idx => $csvrow)
980 $csvrow =& str_replace(
"\n",
" ", $this->object->processCSVRow($csvrow, TRUE,
$separator));
983 include_once
"./Services/Utilities/classes/class.ilUtil.php";
992 $finished_ids = null;
993 if($this->object->get360Mode())
998 $this->ctrl->redirect($this,
"evaluationuser");
1000 $finished_ids = $this->
object->getFinishedIdsForAppraiseeId(
$appr_id);
1001 if(!
sizeof($finished_ids))
1003 $finished_ids = array(-1);
1019 global $ilAccess, $ilToolbar;
1021 if (!$ilAccess->checkAccess(
"write",
"", $this->object->getRefId()))
1024 $this->ctrl->redirectByClass(
"ilObjSurveyGUI",
"infoScreen");
1027 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
1028 $ilToolbar->setFormAction($this->ctrl->getFormAction($this,
"evaluationuser"));
1030 if($this->object->get360Mode())
1037 if(!$this->object->get360Mode() ||
$appr_id)
1040 $format->setOptions(array(
1041 self::TYPE_XLS => $this->lng->txt(
'exp_type_excel'),
1044 $ilToolbar->addInputItem($format);
1047 $label->setOptions(array(
1048 'label_only' => $this->lng->txt(
'export_label_only'),
1049 'title_only' => $this->lng->txt(
'export_title_only'),
1050 'title_label'=> $this->lng->txt(
'export_title_label')
1052 $ilToolbar->addInputItem($label);
1054 include_once
"Services/UIComponent/Button/classes/class.ilSubmitButton.php";
1056 $button->setCaption(
"export");
1057 $button->setCommand(
'exportevaluationuser');
1058 $button->setOmitPreventDoubleSubmission(
true);
1059 $ilToolbar->addButtonInstance($button);
1061 $ilToolbar->addSeparator();
1063 include_once
"Services/UIComponent/Button/classes/class.ilLinkButton.php";
1065 $button->setCaption(
"print");
1066 $button->setOnClick(
"window.print(); return false;");
1067 $button->setOmitPreventDoubleSubmission(
true);
1068 $ilToolbar->addButtonInstance($button);
1070 $finished_ids = null;
1073 $finished_ids = $this->
object->getFinishedIdsForAppraiseeId(
$appr_id);
1074 if(!
sizeof($finished_ids))
1076 $finished_ids = array(-1);
1080 $userResults =& $this->
object->getUserSpecificResults($finished_ids);
1081 $questions =& $this->
object->getSurveyQuestions(
true);
1082 $participants =& $this->
object->getSurveyParticipants($finished_ids);
1083 $tabledata = array();
1085 foreach ($participants as $data)
1087 $questioncounter = 1;
1091 foreach ($questions as $question_id => $question_data)
1093 $found = $userResults[$question_id][$data[
"active_id"]];
1095 if (is_array($found))
1097 $text = implode(
"<br />", $found);
1104 $wt = $this->
object->getWorkingtimeForParticipant($data[
'active_id']);
1107 if($data[
"finished"])
1109 $finished = $data[
"finished_tstamp"];
1115 $tabledata[++$counter] = array(
1116 'username' => $data[
"sortname"],
1118 'question' => $questioncounter++ .
". " . $question_data[
"title"],
1120 'workingtime' => $wt,
1121 'finished' => $finished
1127 $tabledata[$counter][
"subitems"][] = array(
1130 'question' => $questioncounter++ .
". " . $question_data[
"title"],
1132 'workingtime' => null,
1140 $this->tpl->addCss(
"./Modules/Survey/templates/default/survey_print.css",
"print");
1141 $this->tpl->setCurrentBlock(
"generic_css");
1142 $this->tpl->setVariable(
"LOCATION_GENERIC_STYLESHEET",
"./Modules/Survey/templates/default/evaluation_print.css");
1143 $this->tpl->setVariable(
"MEDIA_GENERIC_STYLESHEET",
"print");
1144 $this->tpl->parseCurrentBlock();
1146 include_once
"./Modules/Survey/classes/tables/class.ilSurveyResultsUserTableGUI.php";
1148 $table_gui->
setData($tabledata);
1149 $this->tpl->setContent($table_gui->getHTML());
1164 $ilTabs->activateSubtab(
"svy_eval_competences");
1165 $ilTabs->activateTab(
"svy_results");
1167 $ilToolbar->setFormAction($this->ctrl->getFormAction($this,
"competenceEval"));
1169 if($this->object->get360Mode())
1181 $eval_modes = array();
1184 include_once(
"./Modules/Survey/classes/class.ilSurveySkill.php");
1186 $opts = $sskill->getAllAssignedSkillsAsOptions();
1188 foreach ($opts as $id => $o)
1190 $idarr = explode(
":", $id);
1191 $skills[$id] = array(
"id" => $id,
"title" => $o,
"profiles" => array(),
1192 "base_skill" => $idarr[0],
"tref_id" => $idarr[1]);
1198 include_once(
"./Services/Skill/classes/class.ilSkillProfile.php");
1200 foreach ($profiles as $p)
1203 $prof_levels = $prof->getSkillLevels();
1204 foreach ($prof_levels as $pl)
1206 if (isset($skills[$pl[
"base_skill_id"].
":".$pl[
"tref_id"]]))
1208 $skills[$pl[
"base_skill_id"].
":".$pl[
"tref_id"]][
"profiles"][] =
1211 $eval_modes[
"gap_".$p[
"id"]] =
1212 $lng->txt(
"svy_gap_analysis").
": ".$prof->getTitle();
1222 foreach ($skills as $sk)
1224 if (count($sk[
"profiles"]) == 0)
1226 $eval_modes[
"skills_of_survey"] = $lng->txt(
"svy_all_survey_competences");
1231 $comp_eval_mode =
$_GET[
"comp_eval_mode"];
1232 if (
$_POST[
"comp_eval_mode"] !=
"")
1234 $comp_eval_mode =
$_POST[
"comp_eval_mode"];
1237 if (!isset($eval_modes[$comp_eval_mode]))
1240 $comp_eval_mode = key($eval_modes);
1241 $ilCtrl->setParameter($this,
"comp_eval_mode", $comp_eval_mode);
1244 $ilCtrl->saveParameter($this,
"comp_eval_mode");
1246 include_once(
"./Services/Form/classes/class.ilSelectInputGUI.php");
1247 $mode_sel =
new ilSelectInputGUI($lng->txt(
"svy_analysis"),
"comp_eval_mode");
1249 $mode_sel->setValue($comp_eval_mode);
1250 $ilToolbar->addInputItem($mode_sel,
true);
1252 $ilToolbar->addFormButton($lng->txt(
"select"),
"competenceEval");
1254 if (substr($comp_eval_mode, 0, 4) ==
"gap_")
1257 $profile_id = (int) substr($comp_eval_mode, 4);
1259 include_once(
"./Services/Skill/classes/class.ilPersonalSkillsGUI.php");
1261 $pskills_gui->setProfileId($profile_id);
1262 $pskills_gui->setGapAnalysisActualStatusModePerObject($survey->getId(), $lng->txt(
"survey_360_raters"));
1263 if ($survey->getFinishedIdForAppraiseeIdAndRaterId(
$appr_id,
$appr_id) > 0)
1266 $self_levels = array();
1267 foreach ($sskill->determineSkillLevelsForAppraisee(
$appr_id,
true) as $sl)
1269 $self_levels[$sl[
"base_skill_id"]][$sl[
"tref_id"]] = $sl[
"new_level_id"];
1271 $pskills_gui->setGapAnalysisSelfEvalLevels($self_levels);
1273 $html = $pskills_gui->getGapAnalysisHTML(
$appr_id);
1275 $tpl->setContent($html);
1279 include_once(
"./Services/Skill/classes/class.ilPersonalSkillsGUI.php");
1281 $pskills_gui->setGapAnalysisActualStatusModePerObject($survey->getId(), $lng->txt(
"survey_360_raters"));
1282 if ($survey->getFinishedIdForAppraiseeIdAndRaterId(
$appr_id,
$appr_id) > 0)
1285 $self_levels = array();
1286 foreach ($sskill->determineSkillLevelsForAppraisee(
$appr_id,
true) as $sl)
1288 $self_levels[$sl[
"base_skill_id"]][$sl[
"tref_id"]] = $sl[
"new_level_id"];
1290 $pskills_gui->setGapAnalysisSelfEvalLevels($self_levels);
1293 foreach ($skills as $skill)
1296 "base_skill_id" => (
int) $skill[
"base_skill"],
1297 "tref_id" => (
int) $skill[
"tref_id"]
1300 $html = $pskills_gui->getGapAnalysisHTML(
$appr_id, $sk);
1302 $tpl->setContent($html);