44 public function __construct($a_parent_obj,
string $a_parent_cmd,
int $tree_id)
48 $this->
lng = $DIC->language();
49 $this->
ctrl = $DIC->ctrl();
50 $this->admin_gui_request = $DIC->skills()->internal()->gui()->admin_request();
51 $tree = $DIC->skills()->internal()->factory()->tree()->getTreeById($tree_id);
54 $this->requested_skill_node_id = $this->admin_gui_request->getNodeId();
65 $path = $this->
getTree()->getPathId($this->requested_skill_node_id);
74 $childs = parent::getChildsOfNode($a_parent_node_id);
77 $this->parent[$c[
"child"]] = $c[
"parent"];
78 if ($this->draft[$c[
"parent"]]) {
79 $this->draft[$c[
"child"]] =
true;
95 $title = $a_node[
"title"];
98 if ($a_node[
"type"] ==
"skrt") {
99 $title =
$lng->
txt(
"skmg_skill_templates");
101 if ($a_node[
"type"] ==
"sktr") {
106 $title =
"<u>" . $title .
"</u>";
119 if ($a_node[
"type"] ==
"skrt") {
121 } elseif (in_array($a_node[
"type"], array(
"skll",
"scat",
"sctr",
"sktr"))) {
126 $this->draft[$a_node[
"child"]]
140 if ($a_node[
"child"] == $this->requested_skill_node_id ||
141 ($this->requested_skill_node_id ==
"" && $a_node[
"type"] ==
"skrt")) {
154 switch ($a_node[
"type"]) {
158 $ret = $ilCtrl->getLinkTargetByClass([
"ilAdministrationGUI",
159 "ilObjSkillManagementGUI",
160 "ilSkillTreeAdminGUI",
164 $ilCtrl->setParameterByClass(
"ilskillrootgui",
"node_id", $this->requested_skill_node_id);
169 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"node_id", $a_node[
"child"]);
170 $ret = $ilCtrl->getLinkTargetByClass([
"ilAdministrationGUI",
171 "ilObjSkillManagementGUI",
172 "ilSkillTreeAdminGUI",
174 "ilbasicskilltemplategui" 176 $ilCtrl->setParameterByClass(
"ilbasicskilltemplategui",
"node_id", $this->requested_skill_node_id);
181 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"node_id", $a_node[
"child"]);
182 $ret = $ilCtrl->getLinkTargetByClass([
"ilAdministrationGUI",
183 "ilObjSkillManagementGUI",
184 "ilSkillTreeAdminGUI",
186 "ilskilltemplatecategorygui" 188 $ilCtrl->setParameterByClass(
"ilskilltemplatecategorygui",
"node_id", $this->requested_skill_node_id);
203 if (
$lng->
exists(
"skmg_" . $a_node[
"type"])) {
204 return $lng->
txt(
"skmg_" . $a_node[
"type"]);
207 return $lng->
txt($a_node[
"type"]);
static _lookupTemplateId(int $a_obj_id)
exists(string $a_topic)
Check if language entry exists.
setSkipRootNode(bool $a_val)
static _lookupStatus(int $a_obj_id)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
int $requested_skill_node_id
Request wrapper for guis in skill administration.
setTypeWhiteList(array $a_val)
Set type white list.
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)
Explorer class that works on tree objects (Services/Tree)
setParameterByClass(string $a_class, string $a_parameter, $a_value)
SkillAdminGUIRequest $admin_gui_request
isNodeHighlighted($a_node)
getChildsOfNode($a_parent_node_id)
static getIconPath(int $a_obj_id, string $a_type, string $a_size="", int $a_status=0)
__construct($a_parent_obj, string $a_parent_cmd, int $tree_id)
Explorer class that works on tree objects (Services/Tree)
__construct(Container $dic, ilPlugin $plugin)
setOrderField(string $a_val, bool $a_numeric=false)
static _lookupSelfEvaluation(int $a_obj_id)