ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 public function __construct($a_parent_obj, $a_parent_cmd, $a_survey, $a_appraisee)
23 {
24 global $DIC;
25
26 $this->ctrl = $DIC->ctrl();
27 $this->lng = $DIC->language();
28 $ilCtrl = $DIC->ctrl();
29 $lng = $DIC->language();
30
31 $this->survey = $a_survey;
32 $this->appraisee = $a_appraisee;
33
34 include_once("./Modules/Survey/classes/class.ilSurveySkill.php");
35 include_once("./Modules/Survey/classes/class.ilSurveySkillThresholds.php");
36 $this->survey_skill = new ilSurveySkill($a_survey);
37 $this->thresholds = new ilSurveySkillThresholds($a_survey);
38
39 parent::__construct($a_parent_obj, $a_parent_cmd);
41
42 $this->setTitle($lng->txt(""));
43 $this->setLimit(9999);
44 $this->disable("footer");
45
46 $this->addColumn($this->lng->txt("survey_skill"));
47 $this->addColumn($this->lng->txt("survey_sum_of_means"));
48 $this->addColumn($this->lng->txt("survey_reached_level"));
49
50 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
51 $this->setRowTemplate("tpl.survey_skill_change.html", "Modules/Survey");
52
53 //$this->addMultiCommand("", $lng->txt(""));
54 //$this->addCommandButton("", $lng->txt(""));
55 }
56
64 {
65 $sskill = new ilSurveySkill($this->survey);
66 $new_levels = $sskill->determineSkillLevelsForAppraisee($this->appraisee["user_id"]);
67 $this->setData($new_levels);
68 }
69
73 protected function fillRow($a_set)
74 {
76 //var_dump($a_set);
77 $this->tpl->setVariable("SKILL", $a_set["skill_title"]);
78 $this->tpl->setVariable("MEAN_SUM", $a_set["mean_sum"]);
79 $this->tpl->setVariable("NEW_LEVEL", $a_set["new_level"]);
80 }
81}
An exception for terminatinating execution or to throw for unit testing.
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.
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.
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.
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 $DIC
Definition: saml.php:7