ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilSurveySkillChangesTableGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2011 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/Table/classes/class.ilTable2GUI.php");
6include_once("./Modules/Survey/classes/class.ilSurveySkill.php");
7include_once("./Services/Skill/classes/class.ilBasicSkill.php");
8
18{
22 function __construct($a_parent_obj, $a_parent_cmd, $a_survey, $a_appraisee)
23 {
24 global $ilCtrl, $lng, $ilAccess, $lng;
25
26 $this->survey = $a_survey;
27 $this->appraisee = $a_appraisee;
28
29 include_once("./Modules/Survey/classes/class.ilSurveySkill.php");
30 include_once("./Modules/Survey/classes/class.ilSurveySkillThresholds.php");
31 $this->survey_skill = new ilSurveySkill($a_survey);
32 $this->thresholds = new ilSurveySkillThresholds($a_survey);
33
34 parent::__construct($a_parent_obj, $a_parent_cmd);
36
37 $this->setTitle($lng->txt(""));
38 $this->setLimit(9999);
39 $this->disable("footer");
40
41 $this->addColumn($this->lng->txt("survey_skill"));
42 $this->addColumn($this->lng->txt("survey_sum_of_means"));
43 $this->addColumn($this->lng->txt("survey_reached_level"));
44
45 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
46 $this->setRowTemplate("tpl.survey_skill_change.html", "Modules/Survey");
47
48 //$this->addMultiCommand("", $lng->txt(""));
49 //$this->addCommandButton("", $lng->txt(""));
50 }
51
59 {
60 $sskill = new ilSurveySkill($this->survey);
61 $new_levels = $sskill->determineSkillLevelsForAppraisee($this->appraisee["user_id"]);
62 $this->setData($new_levels);
63 }
64
68 protected function fillRow($a_set)
69 {
70 global $lng;
71//var_dump($a_set);
72 $this->tpl->setVariable("SKILL", $a_set["skill_title"]);
73 $this->tpl->setVariable("MEAN_SUM", $a_set["mean_sum"]);
74 $this->tpl->setVariable("NEW_LEVEL", $a_set["new_level"]);
75 }
76
77}
78?>
TableGUI class for survey skill changes.
__construct($a_parent_obj, $a_parent_cmd, $a_survey, $a_appraisee)
Constructor.
Skill tresholds for 360 surveys.
Skill/Competence handling in surveys.
Class ilTable2GUI.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40