ILIAS
release_4-3 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilSkillTree.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
include_once(
"./Services/Tree/classes/class.ilTree.php"
);
6
14
class
ilSkillTree
extends
ilTree
15
{
16
function
__construct
()
17
{
18
parent::__construct
(1);
// only one skill tree, with ID 1
19
$this->
setTreeTablePK
(
"skl_tree_id"
);
20
$this->
setTableNames
(
'skl_tree'
,
'skl_tree_node'
);
21
}
22
29
function
getSkillTreePath
($a_base_skill_id, $a_tref_id = 0)
30
{
31
if
($a_tref_id > 0)
32
{
33
$path
= $this->
getPathFull
($a_tref_id);
34
$sub_path = $this->
getPathFull
($a_base_skill_id);
35
$found =
false
;
36
foreach
($sub_path as $s)
37
{
38
include_once(
"./Services/Skill/classes/class.ilSkillTemplateReference.php"
);
39
if
($found)
40
{
41
$path
[] = $s;
42
}
43
if
($s[
"child"
] ==
ilSkillTemplateReference::_lookupTemplateId
($a_tref_id))
44
{
45
$found =
true
;
46
}
47
}
48
49
}
50
else
51
{
52
$path
= $this->
getPathFull
($a_base_skill_id);
53
}
54
55
return
$path
;
56
}
57
58
}
59
60
?>
Services
Skill
classes
class.ilSkillTree.php
Generated on Sat Apr 30 2016 19:01:14 for ILIAS by
1.8.1.2 (using
Doxyfile
)