22 $this->survey = $a_survey;
32 $cmd = $ilCtrl->getCmd();
34 $ilCtrl->saveParameter($this, array(
"sk_id",
"tref_id"));
36 if (in_array(
$cmd, array(
"listCompetences",
"listSkillThresholds",
"selectSkill",
53 include_once(
"./Modules/Survey/classes/class.ilSurveySkillTableGUI.php");
55 $tpl->setContent(
$tab->getHTML());
66 $ilTabs->clearTargets();
67 $ilTabs->setBackTarget($lng->txt(
"svy_back"),
68 $ilCtrl->getLinkTarget($this,
"listCompetences"));
70 include_once(
"./Modules/Survey/classes/class.ilSurveySkillThresholdsTableGUI.php");
72 $this->survey, (
int)
$_GET[
"sk_id"], (
int) $_GET[
"tref_id"]);
73 $tpl->setContent(
$tab->getHTML());
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");
102 include_once(
"./Modules/Survey/classes/class.ilSurveySkillThresholds.php");
105 if (is_array(
$_POST[
"threshold"]))
107 foreach (
$_POST[
"threshold"] as $l =>
$t)
109 $thres->writeThreshold((
int)
$_GET[
"sk_id"],
110 (
int) $_GET[
"tref_id"], (
int) $l, (
int)
$t);
115 $ilCtrl->redirect($this,
"listSkillThresholds");