44 $this->ctrl = $DIC->ctrl();
45 $this->tpl = $DIC[
"tpl"];
46 $this->toolbar = $DIC->toolbar();
47 $this->lng = $DIC->language();
48 $this->survey = $a_survey;
58 $cmd =
$ilCtrl->getCmd(
"listSkillChanges");
62 if (in_array($cmd, array(
"listSkillChanges",
"writeAndAddSkills"))) {
77 if ($this->survey->get360Mode()) {
78 $apps = $this->survey->getAppraiseesData();
80 $apps = $this->survey->getSurveyParticipants();
82 $ctpl =
new ilTemplate(
"tpl.svy_skill_list_changes.html",
true,
true,
"Modules/Survey");
83 foreach ($apps as
$app) {
91 $ctpl->setCurrentBlock(
"appraisee");
92 $ctpl->setVariable(
"LASTNAME", $app[
"lastname"]);
93 $ctpl->setVariable(
"FIRSTNAME", $app[
"firstname"]);
95 $ctpl->setVariable(
"CHANGES_TABLE", $changes_table->getHTML());
97 $ctpl->parseCurrentBlock();
100 $tpl->setContent($ctpl->get());
115 $apps = $this->survey->getAppraiseesData();
116 $ctpl =
new ilTemplate(
"tpl.svy_skill_list_changes.html",
true,
true,
"Modules/Survey");
117 foreach ($apps as
$app) {
118 $new_levels = $sskill->determineSkillLevelsForAppraisee($app[
"user_id"]);
119 foreach ($new_levels as $nl) {
120 if ($nl[
"new_level_id"] > 0) {
124 $this->survey->getRefId(),
129 if ($nl[
"tref_id"] > 0) {
137 ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"),
true);
138 $ilCtrl->redirect($this,
"listSkillChanges");
TableGUI class for survey skill changes.
executeCommand()
Execute command.
Skill/Competence handling in surveys.
static addPersonalSkill($a_user_id, $a_skill_node_id)
Add personal skill.
listSkillChanges()
List skill changes.
__construct(ilObjSurvey $a_survey)
Constructor.
writeAndAddSkills()
Write skills and add them to user's competence records.
static writeUserSkillLevelStatus( $a_level_id, $a_user_id, $a_trigger_ref_id, $a_tref_id=0, $a_status=ilBasicSkill::ACHIEVED, $a_force=false, $a_self_eval=false, $a_unique_identifier="")
Write skill level status.
Survey skill determination GUI class.