ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
5 include_once("./Services/Table/classes/class.ilTable2GUI.php");
6 include_once("./Modules/Survey/classes/class.ilSurveySkill.php");
7 include_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 ?>