ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Virtual skill tree. More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
getRootNode () | |
Get root node. More... | |
setIncludeDrafts ($a_val) | |
Set include drafts. More... | |
getIncludeDrafts () | |
Get include drafts. More... | |
setIncludeOutdated ($a_val) | |
Set include outdated. More... | |
getIncludeOutdated () | |
Get include outdated. More... | |
getNode ($a_id) | |
Get node. More... | |
getChildsOfNode ($a_parent_id) | |
Get childs of node. More... | |
getChildsOfNodeForCSkillId ($a_cskill_id) | |
Get childs of node for cskill id. More... | |
getCSkillIdForVTreeId ($a_vtree_id) | |
Get common skill id for tree id. More... | |
getVTreeIdForCSkillId ($a_cskill_id) | |
Get tree id for common skill id. More... | |
getNodeTitle ($a_node) | |
Get node content. More... | |
getSubTreeForCSkillId ($a_cskill_id, $a_only_basic=false) | |
Get sub tree. More... | |
isDraft ($a_node_id) | |
Is draft. More... | |
isOutdated ($a_node_id) | |
Is outdated. More... | |
getOrderedNodeset ($c_skill_ids, $a_skill_id_key="", $a_tref_id_key="") | |
Get ordererd nodeset for common skill ids. More... | |
Protected Member Functions | |
getPath ($a, $node_data) | |
getFirstUncommonAncestors ($a, $b, $node_data) | |
Protected Attributes | |
$lng | |
$include_drafts = false | |
$drafts = array() | |
$include_outdated = false | |
$outdated = array() | |
Static Protected Attributes | |
static | $order_node_data = null |
Private Member Functions | |
__getSubTreeRec ($id, &$result, $a_only_basic) | |
Get subtree, internal. More... | |
ilVirtualSkillTree::__construct | ( | ) |
|
private |
Get subtree, internal.
string | $id | vtree id |
array | $result | node array (called by reference) |
bool | $a_only_basic | return only basic skills (and basic skill templates) |
Definition at line 331 of file class.ilVirtualSkillTree.php.
References $c, $id, $result, ilSkillTreeNode\_lookupType(), and getChildsOfNode().
Referenced by getSubTreeForCSkillId().
ilVirtualSkillTree::getChildsOfNode | ( | $a_parent_id | ) |
Get childs of node.
string | $a_parent_id | parent id |
Definition at line 139 of file class.ilVirtualSkillTree.php.
References $c, $d, $drafts, $outdated, ilSkillTreeNode\_lookupStatus(), ilSkillTemplateReference\_lookupTemplateId(), getCSkillIdForVTreeId(), getIncludeDrafts(), getIncludeOutdated(), ilSkillTreeNode\STATUS_DRAFT, and ilSkillTreeNode\STATUS_OUTDATED.
Referenced by __getSubTreeRec(), and getChildsOfNodeForCSkillId().
ilVirtualSkillTree::getChildsOfNodeForCSkillId | ( | $a_cskill_id | ) |
Get childs of node for cskill id.
string | $a_cskill_id | common skill id <skill_id>:<tref_id> |
Definition at line 215 of file class.ilVirtualSkillTree.php.
References $id, and getChildsOfNode().
ilVirtualSkillTree::getCSkillIdForVTreeId | ( | $a_vtree_id | ) |
Get common skill id for tree id.
string | $a_vtree_id | vtree id |
Definition at line 232 of file class.ilVirtualSkillTree.php.
Referenced by getChildsOfNode(), and getNode().
|
protected |
Definition at line 440 of file class.ilVirtualSkillTree.php.
References getPath().
Referenced by getOrderedNodeset().
ilVirtualSkillTree::getIncludeDrafts | ( | ) |
Get include drafts.
Definition at line 69 of file class.ilVirtualSkillTree.php.
References $include_drafts.
Referenced by getChildsOfNode().
ilVirtualSkillTree::getIncludeOutdated | ( | ) |
Get include outdated.
Definition at line 89 of file class.ilVirtualSkillTree.php.
References $include_outdated.
Referenced by getChildsOfNode().
ilVirtualSkillTree::getNode | ( | $a_id | ) |
Get node.
string | $a_id | vtree id |
Definition at line 100 of file class.ilVirtualSkillTree.php.
References ilSkillTemplateReference\_lookupTemplateId(), and getCSkillIdForVTreeId().
Referenced by getSubTreeForCSkillId().
ilVirtualSkillTree::getNodeTitle | ( | $a_node | ) |
Get node content.
array | $a_node | node data |
Definition at line 272 of file class.ilVirtualSkillTree.php.
ilVirtualSkillTree::getOrderedNodeset | ( | $c_skill_ids, | |
$a_skill_id_key = "" , |
|||
$a_tref_id_key = "" |
|||
) |
Get ordererd nodeset for common skill ids.
string[]|array[] | $c_skill_ids string of "skill_id:tref_id" skill ids or an array | |
string | $a_skill_id_key | if first parameter is array[], this string identifies the key of the basic skill id |
string | $a_tref_id_key | if first parameter is array[], this string identifies the key of the tref id |
Definition at line 373 of file class.ilVirtualSkillTree.php.
References $DIC, getFirstUncommonAncestors(), and getVTreeIdForCSkillId().
|
protected |
Definition at line 429 of file class.ilVirtualSkillTree.php.
References $path.
Referenced by getFirstUncommonAncestors().
ilVirtualSkillTree::getRootNode | ( | ) |
Get root node.
Definition at line 43 of file class.ilVirtualSkillTree.php.
ilVirtualSkillTree::getSubTreeForCSkillId | ( | $a_cskill_id, | |
$a_only_basic = false |
|||
) |
Get sub tree.
string | $a_cskill_id | cskill id |
bool | $a_only_basic | return only basic skills (and basic skill templates) |
Definition at line 303 of file class.ilVirtualSkillTree.php.
References $id, $result, __getSubTreeRec(), ilSkillTreeNode\_lookupType(), and getNode().
ilVirtualSkillTree::getVTreeIdForCSkillId | ( | $a_cskill_id | ) |
Get tree id for common skill id.
Definition at line 253 of file class.ilVirtualSkillTree.php.
References $id.
Referenced by getOrderedNodeset().
ilVirtualSkillTree::isDraft | ( | $a_node_id | ) |
Is draft.
int | $a_node_id | node id |
Definition at line 349 of file class.ilVirtualSkillTree.php.
ilVirtualSkillTree::isOutdated | ( | $a_node_id | ) |
Is outdated.
int | $a_node_id | node id |
Definition at line 360 of file class.ilVirtualSkillTree.php.
ilVirtualSkillTree::setIncludeDrafts | ( | $a_val | ) |
Set include drafts.
bool | $a_val | include drafts |
Definition at line 59 of file class.ilVirtualSkillTree.php.
ilVirtualSkillTree::setIncludeOutdated | ( | $a_val | ) |
Set include outdated.
bool | $a_val | include outdated |
Definition at line 79 of file class.ilVirtualSkillTree.php.
|
protected |
Definition at line 22 of file class.ilVirtualSkillTree.php.
Referenced by getChildsOfNode().
|
protected |
Definition at line 21 of file class.ilVirtualSkillTree.php.
Referenced by getIncludeDrafts().
|
protected |
Definition at line 23 of file class.ilVirtualSkillTree.php.
Referenced by getIncludeOutdated().
|
protected |
Definition at line 18 of file class.ilVirtualSkillTree.php.
Referenced by getNodeTitle().
|
staticprotected |
Definition at line 20 of file class.ilVirtualSkillTree.php.
|
protected |
Definition at line 24 of file class.ilVirtualSkillTree.php.
Referenced by getChildsOfNode().