5 include_once(
"./Services/Skill/classes/class.ilSkillTreeNode.php");
15 require_once(
"./Services/UIComponent/Explorer/classes/class.ilExplorer.php");
48 $this->
user = $DIC->user();
49 $this->ctrl = $DIC->ctrl();
50 $this->lng = $DIC->language();
51 $this->templates = $a_templates;
53 parent::__construct($a_target);
62 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
64 $this->root_id = $this->tree->readRootId();
73 $this->force_open_path = array();
75 $this->all_nodes = $this->tree->getSubTree($this->tree->getNodeData($this->root_id));
76 foreach ($this->all_nodes as
$n) {
77 $this->node[$n[
"child"]] =
$n;
78 $this->child_nodes[$n[
"parent"]][] =
$n;
79 $this->
parent[$n[
"child"]] = $n[
"parent"];
118 $this->force_open_path = $a_path;
145 $ilCtrl->setParameterByClass(
"ilsurveyskillgui",
"obj_id", $a_node_id);
146 $ret =
$ilCtrl->getLinkTargetByClass(
"ilsurveyskillgui",
"selectSkillForQuestion");
147 $ilCtrl->setParameterByClass(
"ilsurveyskillgui",
"obj_id",
$_GET[
"obj_id"]);
160 include_once(
"./Services/Skill/classes/class.ilSkillTemplateReference.php");
178 if (in_array($a_obj_id, $this->force_open_path)) {
241 if (in_array(
$a_type, array(
"sktr"))) {
buildTitle($a_title, $a_id, $a_type)
standard implementation for title, may be overwritten by derived classes
setPostSort($a_sort)
process post sorting
forceExpanded($a_obj_id)
force expansion of node
buildLinkTarget($a_node_id, $a_type)
build link target
setFilterMode($a_mode=IL_FM_NEGATIVE)
set filter mode
setTitleLength($a_length)
Set max title length.
checkPermissions($a_check)
check permissions via rbac
isClickable($a_type, $a_obj_id=0)
check if links for certain object type are activated
__construct($a_target, $a_templates=false)
Constructor public.
setOrderColumn($a_column)
set the order column public
buildFrameTarget($a_type, $a_child=0, $a_obj_id=0)
Get frame target.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static _lookupTemplateId($a_obj_id)
Lookup template ID.
Explorer for skill management.
Class ilExplorer class for explorer view in admin frame.
getImage($a_name, $a_type="", $a_obj_id="")
Get maximum tree depth.
setForceOpenPath($a_path)
Build selectable tree.
setSessionExpandVariable($a_var_name="expand")
set name of expand session variable
addFilter($a_item)
adds item to the filter public