ILIAS
release_8 Revision v8.23
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $tree_id) | |
getRootNode () | |
setIncludeDrafts (bool $a_val) | |
getIncludeDrafts () | |
setIncludeOutdated (bool $a_val) | |
getIncludeOutdated () | |
getNode (string $a_vtree_id) | |
getChildsOfNode (string $a_parent_id) | |
getChildsOfNodeForCSkillId (string $a_cskill_id) | |
getCSkillIdForVTreeId (string $a_vtree_id) | |
getVTreeIdForCSkillId (string $a_cskill_id) | |
getNodeTitle (array $a_node) | |
getSubTreeForCSkillId (string $a_cskill_id, bool $a_only_basic=false) | |
isDraft (string $a_node_id) | |
isOutdated (string $a_node_id) | |
getOrderedNodeset (array $c_skill_ids, string $a_skill_id_key="", string $a_tref_id_key="") | |
Get ordererd nodeset for common skill ids. More... | |
Protected Member Functions | |
__getSubTreeRec (string $id, bool $a_only_basic) | |
getPath (string $a, array $node_data) | |
get path in node data More... | |
getFirstUncommonAncestors (string $a, string $b, array $node_data) | |
get first uncommon ancestors of $a and $b in $node_data More... | |
Protected Attributes | |
ilLanguage | $lng |
ilSkillTree | $tree |
bool | $include_drafts = false |
array | $drafts = [] |
bool | $include_outdated = false |
array | $outdated = [] |
Static Protected Attributes | |
static array | $order_node_data = null |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Virtual skill tree
Definition at line 28 of file class.ilVirtualSkillTree.php.
ilVirtualSkillTree::__construct | ( | int | $tree_id | ) |
Definition at line 50 of file class.ilVirtualSkillTree.php.
References $DIC, and ILIAS\Repository\lng().
|
protected |
Definition at line 275 of file class.ilVirtualSkillTree.php.
References $c, ilSkillTreeNode\_lookupType(), and getChildsOfNode().
Referenced by getSubTreeForCSkillId(), and ilGlobalVirtualSkillTree\getSubTreeForTreeId().
ilVirtualSkillTree::getChildsOfNode | ( | string | $a_parent_id | ) |
Definition at line 128 of file class.ilVirtualSkillTree.php.
References $c, $d, ilSkillTreeNode\_lookupStatus(), ilSkillTemplateReference\_lookupTemplateId(), getCSkillIdForVTreeId(), getIncludeDrafts(), getIncludeOutdated(), ILIAS\Repository\int(), ilSkillTreeNode\STATUS_DRAFT, and ilSkillTreeNode\STATUS_OUTDATED.
Referenced by __getSubTreeRec(), and getChildsOfNodeForCSkillId().
ilVirtualSkillTree::getChildsOfNodeForCSkillId | ( | string | $a_cskill_id | ) |
Definition at line 192 of file class.ilVirtualSkillTree.php.
References $id, and getChildsOfNode().
ilVirtualSkillTree::getCSkillIdForVTreeId | ( | string | $a_vtree_id | ) |
Definition at line 203 of file class.ilVirtualSkillTree.php.
Referenced by getChildsOfNode(), and getNode().
|
protected |
get first uncommon ancestors of $a and $b in $node_data
Definition at line 383 of file class.ilVirtualSkillTree.php.
References getPath().
Referenced by getOrderedNodeset().
ilVirtualSkillTree::getIncludeDrafts | ( | ) |
Definition at line 77 of file class.ilVirtualSkillTree.php.
References $include_drafts.
Referenced by getChildsOfNode().
ilVirtualSkillTree::getIncludeOutdated | ( | ) |
Definition at line 87 of file class.ilVirtualSkillTree.php.
References $include_outdated.
Referenced by getChildsOfNode().
ilVirtualSkillTree::getNode | ( | string | $a_vtree_id | ) |
Definition at line 92 of file class.ilVirtualSkillTree.php.
References ilSkillTemplateReference\_lookupTemplateId(), getCSkillIdForVTreeId(), and ILIAS\Repository\int().
Referenced by getSubTreeForCSkillId(), and ilGlobalVirtualSkillTree\getSubTreeForTreeId().
ilVirtualSkillTree::getNodeTitle | ( | array | $a_node | ) |
Definition at line 229 of file class.ilVirtualSkillTree.php.
References $lng, ILIAS\Repository\int(), and ilLanguage\txt().
ilVirtualSkillTree::getOrderedNodeset | ( | array | $c_skill_ids, |
string | $a_skill_id_key = "" , |
||
string | $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 308 of file class.ilVirtualSkillTree.php.
References Vendor\Package\$a, Vendor\Package\$b, $DIC, getFirstUncommonAncestors(), getVTreeIdForCSkillId(), and ILIAS\Repository\int().
|
protected |
get path in node data
Definition at line 366 of file class.ilVirtualSkillTree.php.
References Vendor\Package\$a, and $path.
Referenced by getFirstUncommonAncestors().
ilVirtualSkillTree::getRootNode | ( | ) |
Definition at line 61 of file class.ilVirtualSkillTree.php.
ilVirtualSkillTree::getSubTreeForCSkillId | ( | string | $a_cskill_id, |
bool | $a_only_basic = false |
||
) |
Definition at line 253 of file class.ilVirtualSkillTree.php.
References $id, __getSubTreeRec(), ilSkillTreeNode\_lookupType(), and getNode().
ilVirtualSkillTree::getVTreeIdForCSkillId | ( | string | $a_cskill_id | ) |
Definition at line 218 of file class.ilVirtualSkillTree.php.
References $id.
Referenced by getOrderedNodeset().
ilVirtualSkillTree::isDraft | ( | string | $a_node_id | ) |
Definition at line 290 of file class.ilVirtualSkillTree.php.
ilVirtualSkillTree::isOutdated | ( | string | $a_node_id | ) |
Definition at line 295 of file class.ilVirtualSkillTree.php.
ilVirtualSkillTree::setIncludeDrafts | ( | bool | $a_val | ) |
Definition at line 72 of file class.ilVirtualSkillTree.php.
ilVirtualSkillTree::setIncludeOutdated | ( | bool | $a_val | ) |
Definition at line 82 of file class.ilVirtualSkillTree.php.
|
protected |
Definition at line 42 of file class.ilVirtualSkillTree.php.
|
protected |
Definition at line 37 of file class.ilVirtualSkillTree.php.
Referenced by getIncludeDrafts().
|
protected |
Definition at line 43 of file class.ilVirtualSkillTree.php.
Referenced by getIncludeOutdated().
|
protected |
Definition at line 30 of file class.ilVirtualSkillTree.php.
Referenced by getNodeTitle().
|
staticprotected |
Definition at line 36 of file class.ilVirtualSkillTree.php.
|
protected |
Definition at line 48 of file class.ilVirtualSkillTree.php.
|
protected |
Definition at line 31 of file class.ilVirtualSkillTree.php.
Referenced by ilGlobalVirtualSkillTree\getChildsOfNode().