5 include_once(
"./Services/Tree/classes/class.ilTree.php");
18 parent::__construct(1);
34 include_once(
"./Services/Skill/classes/class.ilSkillTemplateReference.php");
39 foreach (
$path as $k => $v)
41 if ($v[
"child"] != $a_tref_id)
43 $path[$k][
"skill_id"] = $v[
"child"];
44 $path[$k][
"tref_id"] = 0;
49 $path[$k][
"tref_id"] = $a_tref_id;
54 if (is_array($sub_path))
56 foreach ($sub_path as $s)
60 $s[
"skill_id"] = $s[
"child"];
61 $s[
"tref_id"] = $a_tref_id;
76 foreach (
$path as $k => $v)
78 $path[$k][
"skill_id"] = $v[
"child"];
79 $path[$k][
"tref_id"] = 0;
103 foreach (
$path as $p)
105 if ($p[
"type"] !=
"skrt" && $p[
"child"] != $a_base_skill_id)
107 $str.= $sep.$p[
"title"];
123 return (
int)
$path[1];
getPathId($a_endnode_id, $a_startnode_id=0)
get path from a given startnode to a given endnode if startnode is not given the rootnode is startnod...
getSkillTreePath($a_base_skill_id, $a_tref_id=0)
Get skill tree path.
getPathFull($a_endnode_id, $a_startnode_id=0)
get path from a given startnode to a given endnode if startnode is not given the rootnode is startnod...
getTopParentNodeId($a_node_id)
Get top parent node id for a node.
static _lookupTemplateId($a_obj_id)
Lookup template ID.
setTableNames($a_table_tree, $a_table_obj_data, $a_table_obj_reference="")
set table names The primary key of the table containing your object_data must be 'obj_id' You may use...
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
setTreeTablePK($a_column_name)
set column containing primary key in tree table public
getSkillTreePathAsString($a_base_skill_id, $a_tref_id=0)
Get skill tree path as string.