23 $this->survey = $a_survey;
37 $set = $ilDB->query(
"SELECT * FROM svy_skill_threshold ".
38 " WHERE survey_id = ".$ilDB->quote($this->survey->getId(),
"integer")
40 while ($rec = $ilDB->fetchAssoc($set))
42 $this->threshold[$rec[
'level_id']][$rec[
'tref_id']] =
55 return $this->threshold;
64 function writeThreshold($a_base_skill_id, $a_tref_id, $a_level_id, $a_threshold)
68 $ilDB->replace(
"svy_skill_threshold",
69 array(
"survey_id" => array(
"integer", $this->survey->getId()),
70 "base_skill_id" => array(
"integer", (
int) $a_base_skill_id),
71 "tref_id" => array(
"integer", (
int) $a_tref_id),
72 "level_id" => array(
"integer", (
int) $a_level_id)
74 array(
"threshold" => array(
"integer", (
int) $a_threshold))