ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilSurveySkillThresholdsGUI Class Reference

Survey skill thresholds GUI class. More...

+ Collaboration diagram for ilSurveySkillThresholdsGUI:

Public Member Functions

 __construct (ilObjSurvey $a_survey)
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 
 listCompetences ()
 List competences. More...
 
 listSkillThresholds ()
 List skill thresholds. More...
 
 selectSkill ()
 Select skill. More...
 
 saveThresholds ()
 Save Thresholds. More...
 

Detailed Description

Survey skill thresholds GUI class.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$ @ilCtrl_Calls ilSurveySkillThresholdsGUI:

Definition at line 13 of file class.ilSurveySkillThresholdsGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSurveySkillThresholdsGUI::__construct ( ilObjSurvey  $a_survey)

Constructor.

Parameters
object$a_survey

Definition at line 20 of file class.ilSurveySkillThresholdsGUI.php.

21 {
22 $this->survey = $a_survey;
23 }

Member Function Documentation

◆ executeCommand()

ilSurveySkillThresholdsGUI::executeCommand ( )

Execute command.

Definition at line 28 of file class.ilSurveySkillThresholdsGUI.php.

29 {
30 global $ilCtrl;
31
32 $cmd = $ilCtrl->getCmd();
33
34 $ilCtrl->saveParameter($this, array("sk_id", "tref_id"));
35
36 if (in_array($cmd, array("listCompetences", "listSkillThresholds", "selectSkill",
37 "saveThresholds")))
38 {
39 $this->$cmd();
40 }
41 }
global $ilCtrl
Definition: ilias.php:18
$cmd
Definition: sahs_server.php:35

References $cmd, and $ilCtrl.

◆ listCompetences()

ilSurveySkillThresholdsGUI::listCompetences ( )

List competences.

Parameters

return

Definition at line 49 of file class.ilSurveySkillThresholdsGUI.php.

50 {
51 global $tpl;
52
53 include_once("./Modules/Survey/classes/class.ilSurveySkillTableGUI.php");
54 $tab = new ilSurveySkillTableGUI($this, "listCompetences", $this->survey);
55 $tpl->setContent($tab->getHTML());
56 }
global $tpl
Definition: ilias.php:8
TableGUI class for skill list in survey.

References $tab, and $tpl.

◆ listSkillThresholds()

ilSurveySkillThresholdsGUI::listSkillThresholds ( )

List skill thresholds.

Definition at line 62 of file class.ilSurveySkillThresholdsGUI.php.

63 {
64 global $tpl, $ilToolbar, $lng, $ilCtrl, $ilTabs;
65
66 $ilTabs->clearTargets();
67 $ilTabs->setBackTarget($lng->txt("svy_back"),
68 $ilCtrl->getLinkTarget($this, "listCompetences"));
69
70 include_once("./Modules/Survey/classes/class.ilSurveySkillThresholdsTableGUI.php");
71 $tab = new ilSurveySkillThresholdsTableGUI($this, "listSkillThresholds",
72 $this->survey, (int) $_GET["sk_id"], (int) $_GET["tref_id"]);
73 $tpl->setContent($tab->getHTML());
74 }
$_GET["client_id"]
TableGUI class for competence thresholds.
global $lng
Definition: privfeed.php:40

References $_GET, $ilCtrl, $lng, $tab, and $tpl.

◆ saveThresholds()

ilSurveySkillThresholdsGUI::saveThresholds ( )

Save Thresholds.

Parameters

return

Definition at line 98 of file class.ilSurveySkillThresholdsGUI.php.

99 {
100 global $ilCtrl, $lng;
101
102 include_once("./Modules/Survey/classes/class.ilSurveySkillThresholds.php");
103 $thres = new ilSurveySkillThresholds($this->survey);
104
105 if (is_array($_POST["threshold"]))
106 {
107 foreach ($_POST["threshold"] as $l => $t)
108 {
109 $thres->writeThreshold((int) $_GET["sk_id"],
110 (int) $_GET["tref_id"], (int) $l, (int) $t);
111 }
112 ilUtil::sendSuccess($lng->txt("msg_obj_modified"), 1);
113 }
114
115 $ilCtrl->redirect($this, "listSkillThresholds");
116 }
global $l
Definition: afr.php:30
Skill tresholds for 360 surveys.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
$_POST['username']
Definition: cron.php:12

References $_GET, $_POST, $ilCtrl, $l, $lng, $t, and ilUtil\sendSuccess().

+ Here is the call graph for this function:

◆ selectSkill()

ilSurveySkillThresholdsGUI::selectSkill ( )

Select skill.

Parameters

return

Definition at line 82 of file class.ilSurveySkillThresholdsGUI.php.

83 {
84 global $ilCtrl;
85
86 $o = explode(":", $_POST["skill"]);
87 $ilCtrl->setParameter($this, "sk_id", (int) $o[0]);
88 $ilCtrl->setParameter($this, "tref_id", (int) $o[1]);
89 $ilCtrl->redirect($this, "listSkillThresholds");
90 }

References $_POST, and $ilCtrl.


The documentation for this class was generated from the following file: