/**
  * Get node content
  *
  * @param array $a_node node data
  * @return string content
  */
 function getNodeContent($a_node)
 {
     global $lng;
     $a_parent_id_parts = explode(":", $a_node["id"]);
     $a_parent_skl_tree_id = $a_parent_id_parts[0];
     $a_parent_skl_template_tree_id = $a_parent_id_parts[1];
     // title
     $title = $a_node["title"];
     // root?
     if ($a_node["type"] == "skrt") {
         $title = $lng->txt("skmg_skills");
     } else {
         if ($a_node["type"] == "sktr") {
             include_once "./Services/Skill/classes/class.ilSkillTemplateReference.php";
             $tid = ilSkillTemplateReference::_lookupTemplateId($a_parent_skl_tree_id);
             $title .= " (" . ilSkillTreeNode::_lookupTitle($tid) . ")";
         }
         // @todo: fix this if possible for skill/tref_id combination
         if (ilSkillTreeNode::_lookupSelfEvaluation($a_parent_skl_tree_id)) {
             if ($a_parent_skl_template_tree_id == 0 || $a_node["type"] == "sktr") {
                 $title = "<u>" . $title . "</u>";
             }
         }
     }
     if ($this->vtree->isOutdated($a_node["id"])) {
         $title = "<span class='light'>" . $title . "</span>";
     }
     return $title;
 }
 /**
  * Get node content
  *
  * @param array 
  * @return
  */
 function getNodeContent($a_node)
 {
     global $lng;
     // title
     $title = $a_node["title"];
     // root?
     if ($a_node["type"] == "skrt") {
         $title = $lng->txt("skmg_skill_templates");
     } else {
         if ($a_node["type"] == "sktr") {
             include_once "./Services/Skill/classes/class.ilSkillTemplateReference.php";
             $tid = ilSkillTemplateReference::_lookupTemplateId($a_node["child"]);
             $title .= " (" . ilSkillTreeNode::_lookupTitle($tid) . ")";
         }
         if (ilSkillTreeNode::_lookupSelfEvaluation($a_node["child"])) {
             $title = "<u>" . $title . "</u>";
         }
     }
     return $title;
 }
 /**
  * standard implementation for title, may be overwritten by derived classes
  */
 function buildTitle($a_title, $a_id, $a_type)
 {
     if ($a_type == "sktr") {
         include_once "./Services/Skill/classes/class.ilSkillTemplateReference.php";
         $tid = ilSkillTemplateReference::_lookupTemplateId($a_id);
         $a_title .= " (" . ilSkillTreeNode::_lookupTitle($tid) . ")";
     }
     if (ilSkillTreeNode::_lookupSelfEvaluation($a_id)) {
         $a_title = "<u>" . $a_title . "</u>";
     }
     return $a_title;
 }
 /**
  * Is clickable
  *
  * @param
  * @return
  */
 function isNodeClickable($a_node)
 {
     if (!ilSkillTreeNode::_lookupSelfEvaluation($a_node["child"])) {
         return false;
     }
     return true;
 }
 /**
  * check if links for certain object type are activated
  *
  * @param	string		$a_type			object type
  *
  * @return	boolean		true if linking is activated
  */
 function isClickable($a_type, $a_obj_id = 0)
 {
     global $ilUser;
     if (!ilSkillTreeNode::_lookupSelfEvaluation($a_obj_id)) {
         return false;
     }
     return true;
 }