5 include_once(
"./Services/Skill/classes/class.ilSkillTreeNode.php");
25 parent::__construct($a_id);
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);
178 return self::_lookupTrefIdsForTopTemplateId($top_template_id);
__construct($a_id=0)
Constructor public.
setSkillTemplateId($a_val)
Set skill template id.
setType($a_type)
Set type.
getSkillTemplateId()
Get skill template id.
Skill Template Reference.
static _lookupTrefIdsForTemplateId($a_tid)
Get all tref ids for a template id.
copy()
Copy basic skill template.
getSelfEvaluation()
Get self evaluation.
getOrderNr()
Get order nr.
static _lookupTemplateId($a_obj_id)
Lookup template ID.
Create styles array
The data for the language used.
static _lookupTrefIdsForTopTemplateId($a_template_id)
Lookup tref ids for template id.
A node in the skill tree.
create()
Create skill template reference.
read()
Read data from database.