19 declare(strict_types=1);
40 string $a_select_par =
"selected_skill",
41 int $a_skill_tree_id = 0
45 $this->
ctrl = $DIC->ctrl();
46 $this->admin_gui_request = $DIC->skills()->internal()->gui()->admin_request();
48 $this->select_gui = (is_object($a_select_gui))
49 ? strtolower(get_class($a_select_gui))
51 $this->select_cmd = $a_select_cmd;
52 $this->select_par = $a_select_par;
64 $pa = $this->admin_gui_request->getSelectedIds($this->select_postvar);
67 $skills[] = $this->vtree->getCSkillIdForVTreeId($p);
78 if ($this->select_multi) {
87 $id_parts = explode(
":", $a_node[
"id"]);
88 if (!isset($id_parts[1]) || $id_parts[1] == 0) {
90 $skill_id = $a_node[
"id"];
93 $skill_id = $id_parts[1] .
":" . $id_parts[0];
96 $ilCtrl->setParameterByClass($this->select_gui, $this->select_par, $skill_id);
97 $ret = $ilCtrl->getLinkTargetByClass($this->select_gui, $this->select_cmd);
98 $ilCtrl->setParameterByClass($this->select_gui, $this->select_par,
"");
125 if (in_array($a_node[
"type"], array(
"skll",
"sktp"))) {
setSkipRootNode(bool $a_val)
setSkillSelected(string $a_id)
Request wrapper for guis in skill administration.
static _lookupType(int $a_obj_id)
setNodeSelected($a_id)
Set node to be opened (additional custom opened node, not standard expand behaviour) ...
isNodeSelectable($a_node)
Explorer class that works on tree objects (Services/Tree)
SkillAdminGUIRequest $admin_gui_request
__construct(Container $dic, ilPlugin $plugin)
__construct( $a_parent_obj, string $a_parent_cmd, $a_select_gui, string $a_select_cmd, string $a_select_par="selected_skill", int $a_skill_tree_id=0)
Virtual skill tree explorer.