5 include_once(
"./Services/Skill/classes/class.ilSkillTreeNode.php");
36 $this->skill_template_id = $a_val;
46 return $this->skill_template_id;
58 $set = $ilDB->query(
"SELECT * FROM skl_templ_ref ".
59 " WHERE skl_node_id = ".$ilDB->quote($this->getId(),
"integer")
61 $rec = $ilDB->fetchAssoc($set);
74 $ilDB->manipulate(
"INSERT INTO skl_templ_ref ".
75 "(skl_node_id, templ_id) VALUES (".
76 $ilDB->quote($this->getId(),
"integer").
",".
77 $ilDB->quote($this->getSkillTemplateId(),
"integer").
90 $ilDB->manipulate(
"UPDATE skl_templ_ref SET ".
91 " templ_id = ".$ilDB->quote($this->getSkillTemplateId(),
"integer").
92 " WHERE skl_node_id = ".$ilDB->quote($this->getId(),
"integer")
104 $ilDB->manipulate(
"DELETE FROM skl_templ_ref WHERE "
105 .
" skl_node_id = ".$ilDB->quote($this->getId(),
"integer")
118 $sktr->setType($this->
getType());
137 $query =
"SELECT templ_id FROM skl_templ_ref WHERE skl_node_id = ".
138 $ilDB->quote($a_obj_id,
"integer");
139 $obj_set = $ilDB->query(
$query);
140 $obj_rec = $ilDB->fetchAssoc($obj_set);
142 return $obj_rec[
"templ_id"];
155 $set = $ilDB->query(
"SELECT * FROM skl_templ_ref ".
156 " WHERE templ_id = ".$ilDB->quote($a_template_id,
"integer")
159 while ($rec = $ilDB->fetchAssoc($set))
161 $trefs[] = $rec[
"skl_node_id"];
175 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
177 $top_template_id = $tree->getTopParentNodeId($a_tid);