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];
144 array(
"skrt",
"sktp",
"sctp"));
149 array(
"skrt",
"skll",
"scat",
"sktr"));
154 foreach ($childs as $k => $c)
156 $max = max(
array($c[
"order_nr"], $max));
getChilds($a_node_id, $a_order="", $a_direction="ASC")
get child nodes of given node public
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.
getChildsByTypeFilter($a_node_id, $a_types, $a_order="", $a_direction="ASC")
get child nodes of given node by object type public
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.
getMaxOrderNr($a_par_id, $a_templates=false)
Get max order nr.
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...
Create styles array
The data for the language used.
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.
readRootId()
read root id from database