4include_once(
"./Services/UIComponent/Explorer2/classes/class.ilTreeExplorerGUI.php");
 
    5include_once(
"./Services/Skill/classes/class.ilSkillTreeNode.php");
 
   34    public function __construct($a_parent_obj, $a_parent_cmd, $a_select_gui, $a_select_cmd, $a_select_par = 
"obj_id")
 
   38        $this->ctrl = 
$DIC->ctrl();
 
   39        $this->lng = 
$DIC->language();
 
   41        $this->select_gui = (is_object($a_select_gui))
 
   42            ? strtolower(get_class($a_select_gui))
 
   44        $this->select_cmd = $a_select_cmd;
 
   45        $this->select_par = $a_select_par;
 
   47        $this->lng->loadLanguageModule(
"skmg");
 
   49        include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
 
   51        $this->root_id = $this->tree->readRootId();
 
   53        parent::__construct(
"pskill_sel", $a_parent_obj, $a_parent_cmd, $this->tree);
 
   56        $this->all_nodes = $this->tree->getSubTree($this->tree->getNodeData($this->root_id));
 
   57        foreach ($this->all_nodes as 
$n) {
 
   58            $this->node[
$n[
"child"]] = 
$n;
 
   59            $this->child_nodes[
$n[
"parent"]][] = 
$n;
 
   60            $this->parent[
$n[
"child"]] = 
$n[
"parent"];
 
   76        $this->has_selectable_nodes = $a_val;
 
  102            $this->selectable[$a_node_id] = 
true;
 
  105            while (isset($this->parent[$cid])) {
 
  106                $this->selectable[$this->parent[$cid]] = 
true;
 
  107                $cid = $this->parent[$cid];
 
  114        if ($this->selectable[$a_node_id]) {
 
  116            $this->selectable_child_nodes[$this->node[$a_node_id][
"parent"]][] =
 
  117                $this->node[$a_node_id];
 
  129        if (is_array($this->selectable_child_nodes[$a_parent_id])) {
 
  130            $childs = $this->selectable_child_nodes[$a_parent_id];
 
  145        if (is_array($this->child_nodes[$a_parent_id])) {
 
  146            return $this->child_nodes[$a_parent_id];
 
  161        $skill_id = $a_node[
"child"];
 
  163        $ilCtrl->setParameterByClass($this->select_gui, $this->select_par, $skill_id);
 
  164        $ret = 
$ilCtrl->getLinkTargetByClass($this->select_gui, $this->select_cmd);
 
  165        $ilCtrl->setParameterByClass($this->select_gui, $this->select_par, 
"");
 
  181        $title = $a_node[
"title"];
 
  205        $t = $a_node[
"type"];
 
  206        if (in_array(
$t, array(
"sktr"))) {
 
  222        if (
$lng->exists(
"skmg_" . $a_node[
"type"])) {
 
  223            return $lng->txt(
"skmg_" . $a_node[
"type"]);
 
  226        return $lng->txt($a_node[
"type"]);
 
An exception for terminatinating execution or to throw for unit testing.
setSkipRootNode($a_val)
Set skip root node.
Explorer for selecting a personal skill.
getNodeIconAlt($a_node)
Get node icon alt attribute.
getNodeIcon($a_node)
get image path (may be overwritten by derived classes)
isNodeClickable($a_node)
Is clickable.
getHasSelectableNodes()
Get selectable nodes exist?
getOriginalChildsOfNode($a_parent_id)
Get original childs of node (whole tree)
getChildsOfNode($a_parent_id)
Get childs of node (selectable tree)
getNodeContent($a_node)
Get node content.
__construct($a_parent_obj, $a_parent_cmd, $a_select_gui, $a_select_cmd, $a_select_par="obj_id")
Constructor.
getNodeHref($a_node)
Get href for node.
setHasSelectableNodes($a_val)
Set selectable nodes exist?
buildSelectableTree($a_node_id)
Build selectable tree.
static _lookupStatus($a_obj_id)
Lookup Status.
static _lookupSelfEvaluation($a_obj_id)
Lookup self evaluation.
Explorer class that works on tree objects (Services/Tree)
static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)