29 $this->lng = $DIC->language();
30 $this->ctrl = $DIC->ctrl();
51 $a_parent_id_parts = explode(
":", $a_node[
"id"]);
52 $a_parent_skl_tree_id = $a_parent_id_parts[0];
53 $a_parent_skl_template_tree_id = $a_parent_id_parts[1];
56 $title = $a_node[
"title"];
59 if ($a_node[
"type"] ==
"skrt") {
60 $title =
$lng->txt(
"skmg_skills");
62 if ($a_node[
"type"] ==
"sktr") {
69 if ($a_parent_skl_template_tree_id == 0 || $a_node[
"type"] ==
"sktr") {
70 $title =
"<u>" . $title .
"</u>";
75 if ($this->vtree->isOutdated($a_node[
"id"])) {
76 $title =
"<span class='light'>" . $title .
"</span>";
90 $a_parent_id_parts = explode(
":", $a_node[
"id"]);
91 $a_parent_skl_tree_id = $a_parent_id_parts[0];
92 $a_parent_skl_template_tree_id = $a_parent_id_parts[1];
96 if ($a_node[
"type"] ==
"skrt") {
99 if (in_array($a_node[
"type"], array(
"skll",
"scat",
"sctr",
"sktr",
"sctp",
"sktp"))) {
101 $a_parent_skl_tree_id,
104 ($this->vtree->isDraft($a_node[
"id"]) || $this->vtree->isOutdated($a_node[
"id"]))
122 $id_parts = explode(
":", $a_node[
"id"]);
123 if ($id_parts[1] == 0) {
125 $skill_id = $a_node[
"id"];
129 $tref_id = $id_parts[0];
130 $skill_id = $id_parts[1];
133 if (
$_GET[
"obj_id"] ==
"" && $a_node[
"type"] ==
"skrt") {
137 if ($skill_id ==
$_GET[
"obj_id"] &&
138 (
$_GET[
"tref_id"] == $tref_id)) {
154 $id_parts = explode(
":", $a_node[
"id"]);
155 if ($id_parts[1] == 0) {
157 $skill_id = $a_node[
"id"];
161 $tref_id = $id_parts[0];
162 $skill_id = $id_parts[1];
166 "skrt" =>
"ilskillrootgui",
167 "scat" =>
"ilskillcategorygui",
168 "sktr" =>
"ilskilltemplatereferencegui",
169 "skll" =>
"ilbasicskillgui",
170 "sktp" =>
"ilbasicskilltemplategui",
171 "sctp" =>
"ilskilltemplatecategorygui" 175 "skrt" =>
"listSkills",
176 "scat" =>
"listItems",
177 "sktr" =>
"listItems",
180 "sctp" =>
"listItems" 183 $gui_class = $gui_class[$a_node[
"type"]];
184 $cmd = $cmd[$a_node[
"type"]];
186 $ilCtrl->setParameterByClass($gui_class,
"tref_id", $tref_id);
187 $ilCtrl->setParameterByClass($gui_class,
"obj_id", $skill_id);
188 $ret = $ilCtrl->getLinkTargetByClass([
"ilAdministrationGUI",
"ilObjSkillManagementGUI", $gui_class], $cmd);
189 $ilCtrl->setParameterByClass($gui_class,
"obj_id",
$_GET[
"obj_id"]);
190 $ilCtrl->setParameterByClass($gui_class,
"tref_id",
$_GET[
"tref_id"]);
setShowDraftNodes($a_val)
Set show draft nodes.
static _lookupSelfEvaluation($a_obj_id)
Lookup self evaluation.
static getIconPath($a_obj_id, $a_type, $a_size="", $a_status=0)
Get icon path.
setSkipRootNode($a_val)
Set skip root node.
isNodeClickable($a_node)
Is clickable.
setShowOutdatedNodes($a_val)
Set show outdated nodes.
getNodeHref($a_node)
Get href for node.
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.
isNodeHighlighted($a_node)
Is node highlighted?
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
__construct(Container $dic, ilPlugin $plugin)
getNodeIcon($a_node)
Get node content.
Explorer class that works on tree objects (Services/Tree)
getNodeContent($a_node)
Get node content.
Virtual skill tree explorer.