5include_once(
"./Services/Tree/classes/class.ilTree.php");
 
   18        parent::__construct(1); 
 
   33            include_once(
"./Services/Skill/classes/class.ilSkillTemplateReference.php");
 
   36            if (is_array(
$path)) {
 
   37                foreach (
$path as $k => $v) {
 
   38                    if ($v[
"child"] != $a_tref_id) {
 
   39                        $path[$k][
"skill_id"] = $v[
"child"];
 
   40                        $path[$k][
"tref_id"] = 0;
 
   43                        $path[$k][
"tref_id"] = $a_tref_id;
 
   48            if (is_array($sub_path)) {
 
   49                foreach ($sub_path as 
$s) {
 
   51                        $s[
"skill_id"] = 
$s[
"child"];
 
   52                        $s[
"tref_id"] = $a_tref_id;
 
   62            if (is_array(
$path)) {
 
   63                foreach (
$path as $k => $v) {
 
   64                    $path[$k][
"skill_id"] = $v[
"child"];
 
   65                    $path[$k][
"tref_id"] = 0;
 
   70        if (is_array(
$path)) {
 
   88        foreach (
$path as $p) {
 
   89            if ($p[
"type"] != 
"skrt" && $p[
"child"] != $a_base_skill_id) {
 
   90                $str .= $sep . $p[
"title"];
 
  106        return (
int) 
$path[1];
 
  124                    array(
"skrt", 
"sktp", 
"sctp")
 
  129                    array(
"skrt", 
"skll", 
"scat", 
"sktr")
 
  135        foreach ($childs as $k => 
$c) {
 
  136            $max = max(array(
$c[
"order_nr"], $max));
 
An exception for terminatinating execution or to throw for unit testing.
static _lookupTemplateId($a_obj_id)
Lookup template ID.
getMaxOrderNr($a_par_id, $a_templates=false)
Get max order nr.
getSkillTreePathAsString($a_base_skill_id, $a_tref_id=0)
Get skill tree path as string.
getTopParentNodeId($a_node_id)
Get top parent node id for a node.
getSkillTreePath($a_base_skill_id, $a_tref_id=0)
Get skill tree path.
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 @access public
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...
readRootId()
read root id from database
getChildsByTypeFilter($a_node_id, $a_types, $a_order="", $a_direction="ASC")
get child nodes of given node by object type @access 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...
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...
getChilds($a_node_id, $a_order="", $a_direction="ASC")
get child nodes of given node @access public