34 $this->db = $DIC->database();
35 $this->survey = $a_survey;
39 public function read(): void
44 "SELECT * FROM svy_skill_threshold " .
45 " WHERE survey_id = " .
$ilDB->quote($this->survey->getId(),
"integer")
47 while ($rec =
$ilDB->fetchAssoc($set)) {
48 $this->threshold[(
int) $rec[
'level_id']][(
int) $rec[
'tref_id']] = (
int) $rec[
'threshold'];
69 "svy_skill_threshold",
70 array(
"survey_id" => array(
"integer", $this->survey->getId()),
71 "base_skill_id" => array(
"integer", $a_base_skill_id),
72 "tref_id" => array(
"integer", $a_tref_id),
73 "level_id" => array(
"integer", $a_level_id)
75 array(
"threshold" => array(
"integer", $a_threshold))
81 $target_thresholds =
new self($target_survey);
82 $set = $this->db->queryF(
"SELECT * FROM svy_skill_threshold " .
83 " WHERE survey_id = %s ",
85 [$this->survey->getId()]
87 while ($rec = $this->db->fetchAssoc($set)) {
88 $target_thresholds->writeThreshold(
89 (
int) $rec[
"base_skill_id"],
90 (
int) $rec[
"tref_id"],
91 (
int) $rec[
"level_id"],
92 (
int) $rec[
"threshold"]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
cloneTo(ilObjSurvey $target_survey, array $mapping)
writeThreshold(int $a_base_skill_id, int $a_tref_id, int $a_level_id, int $a_threshold)
__construct(ilObjSurvey $a_survey)