39 public function __construct($a_parent_obj,
string $a_parent_cmd,
int $tree_id = 0)
43 $this->
lng = $DIC->language();
44 $this->
ctrl = $DIC->ctrl();
45 $this->admin_gui_request = $DIC->skills()->internal()->gui()->admin_request();
48 $this->requested_skill_node_id = $this->admin_gui_request->getNodeId();
49 $this->requested_tref_id = $this->admin_gui_request->getTrefId();
65 $a_parent_id_parts = explode(
":", $a_node[
"id"]);
66 $a_parent_skl_tree_id = (
int) $a_parent_id_parts[0];
67 $a_parent_skl_template_tree_id = isset($a_parent_id_parts[1]) ? (
int) $a_parent_id_parts[1] : 0;
70 $title = $a_node[
"title"];
73 if ($a_node[
"type"] ==
"skrt") {
74 $tree_obj = $this->skill_tree_manager->getTree($a_node[
"skl_tree_id"]);
75 $title = $tree_obj->getTitle();
77 if ($a_node[
"type"] ==
"sktr") {
84 if ($a_parent_skl_template_tree_id == 0 || $a_node[
"type"] ==
"sktr") {
85 $title =
"<u>" . $title .
"</u>";
90 if ($this->vtree->isOutdated($a_node[
"id"])) {
91 $title =
"<span class='light'>" . $title .
"</span>";
102 $a_parent_id_parts = explode(
":", $a_node[
"id"]);
103 $a_parent_skl_tree_id = (
int) $a_parent_id_parts[0];
104 $a_parent_skl_template_tree_id = isset($a_parent_id_parts[1]) ? (
int) $a_parent_id_parts[1] : 0;
108 if ($a_node[
"type"] ==
"skrt") {
110 } elseif (in_array($a_node[
"type"], array(
"skll",
"scat",
"sctr",
"sktr",
"sctp",
"sktp"))) {
112 $a_parent_skl_tree_id,
115 ($this->vtree->isDraft($a_node[
"id"]) || $this->vtree->isOutdated($a_node[
"id"]))
129 $id_parts = explode(
":", $a_node[
"id"]);
130 if (!isset($id_parts[1]) || $id_parts[1] == 0) {
132 $skill_id = $id_parts[0];
136 $tref_id = $id_parts[0];
137 $skill_id = $id_parts[1];
140 if ($this->requested_skill_node_id ==
"" && $a_node[
"type"] ==
"skrt") {
144 if ($skill_id == $this->requested_skill_node_id &&
145 ($this->requested_tref_id == $tref_id)) {
158 $id_parts = explode(
":", $a_node[
"id"]);
159 if (!isset($id_parts[1]) || $id_parts[1] == 0) {
161 $skill_id = $id_parts[0];
165 $tref_id = $id_parts[0];
166 $skill_id = $id_parts[1];
170 "skrt" =>
"ilskillrootgui",
171 "scat" =>
"ilskillcategorygui",
172 "sktr" =>
"ilskilltemplatereferencegui",
173 "skll" =>
"ilbasicskillgui",
174 "sktp" =>
"ilbasicskilltemplategui",
175 "sctp" =>
"ilskilltemplatecategorygui" 179 "skrt" =>
"listSkills",
180 "scat" =>
"listItems",
181 "sktr" =>
"listItems",
184 "sctp" =>
"listItems" 187 $gui_class = $gui_class[$a_node[
"type"]];
188 $cmd = $cmd[$a_node[
"type"]];
190 $ilCtrl->setParameterByClass($gui_class,
"tref_id", $tref_id);
191 $ilCtrl->setParameterByClass($gui_class,
"node_id", $skill_id);
192 $ret = $ilCtrl->getLinkTargetByClass([
"ilAdministrationGUI",
"ilObjSkillManagementGUI",
193 "ilSkillTreeAdminGUI",
"ilObjSkillTreeGUI", $gui_class], $cmd);
194 $ilCtrl->setParameterByClass($gui_class,
"node_id", $this->requested_skill_node_id);
195 $ilCtrl->setParameterByClass($gui_class,
"tref_id", $this->requested_tref_id);
int $requested_skill_node_id
static _lookupTemplateId(int $a_obj_id)
setSkipRootNode(bool $a_val)
Request wrapper for guis in skill administration.
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static _lookupTitle(int $a_obj_id, int $a_tref_id=0)
SkillAdminGUIRequest $admin_gui_request
setShowDraftNodes(bool $a_val)
static getIconPath(int $a_obj_id, string $a_type, string $a_size="", int $a_status=0)
isNodeHighlighted($a_node)
__construct($a_parent_obj, string $a_parent_cmd, int $tree_id=0)
__construct(Container $dic, ilPlugin $plugin)
Explorer class that works on tree objects (Services/Tree)
static _lookupSelfEvaluation(int $a_obj_id)
Virtual skill tree explorer.
setShowOutdatedNodes(bool $a_val)