30 $this->db = $DIC->database();
31 $this->survey = $a_survey;
46 "SELECT * FROM svy_skill_threshold " .
47 " WHERE survey_id = " .
$ilDB->quote($this->survey->getId(),
"integer")
49 while ($rec =
$ilDB->fetchAssoc($set)) {
50 $this->threshold[$rec[
'level_id']][$rec[
'tref_id']] =
63 return $this->threshold;
72 public function writeThreshold($a_base_skill_id, $a_tref_id, $a_level_id, $a_threshold)
77 "svy_skill_threshold",
78 array(
"survey_id" => array(
"integer", $this->survey->getId()),
79 "base_skill_id" => array(
"integer", (
int) $a_base_skill_id),
80 "tref_id" => array(
"integer", (
int) $a_tref_id),
81 "level_id" => array(
"integer", (
int) $a_level_id)
83 array(
"threshold" => array(
"integer", (
int) $a_threshold))
89 $target_thresholds =
new self($target_survey);
90 $set = $this->db->queryF(
"SELECT * FROM svy_skill_threshold " .
91 " WHERE survey_id = %s ",
93 [$this->survey->getId()]
95 while ($rec = $this->db->fetchAssoc($set)) {
96 $target_thresholds->writeThreshold(
97 (
int) $rec[
"base_skill_id"],
98 (
int) $rec[
"tref_id"],
99 (
int) $rec[
"level_id"],
100 (
int) $rec[
"threshold"]
Skill tresholds for 360 surveys.
cloneTo(ilObjSurvey $target_survey, array $mapping)
__construct(ilObjSurvey $a_survey)
Constructor.
writeThreshold($a_base_skill_id, $a_tref_id, $a_level_id, $a_threshold)
Write threshold.
getThresholds()
Get thresholds.