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"]);
Request wrapper for guis in skill administration.
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
setSkipRootNode(bool $a_val)
exists(string $a_topic)
Check if language entry exists.
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...
static _lookupTemplateId(int $a_obj_id)
Explorer class that works on tree objects (Services/Tree)
__construct($a_parent_obj, string $a_parent_cmd, int $tree_id)
isNodeHighlighted($a_node)
Is node highlighted?bool node highlighted true/false
SkillAdminGUIRequest $admin_gui_request
getNodeIcon($a_node)
Get node icon path.string image file path
int $requested_skill_node_id
getNodeIconAlt($a_node)
Get node icon alt attribute.string image alt attribute
getChildsOfNode($a_parent_node_id)
Get childs of node.array childs
getNodeContent($a_node)
Get content of a node.string content of the node
getNodeHref($a_node)
Get href for node.string href attribute
getRootNode()
Get root node.
static getIconPath(int $a_obj_id, string $a_type, string $a_size="", int $a_status=0)
static _lookupSelfEvaluation(int $a_obj_id)
static _lookupTitle(int $a_obj_id, int $a_tref_id=0)
static _lookupStatus(int $a_obj_id)
Explorer class that works on tree objects (Services/Tree)
setOrderField(string $a_val, bool $a_numeric=false)
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)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc