ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPoolSelectorGUI.php
Go to the documentation of this file.
1<?php
2
25{
26 protected string $selection_subcmd = "";
27
28
33 public function __construct(
34 $a_parent_obj,
35 string $a_parent_cmd,
36 $a_selection_gui = null,
37 string $a_selection_cmd = "insert",
38 string $a_selection_subcmd = "selectPool",
39 string $a_selection_par = "pool_ref_id"
40 ) {
41 global $DIC;
42
43 $this->ctrl = $DIC->ctrl();
44 if ($a_selection_gui == null) {
45 $a_selection_gui = $a_parent_obj;
46 }
47
48 $this->selection_subcmd = $a_selection_subcmd;
50 $a_parent_obj,
51 $a_parent_cmd,
52 $a_selection_gui,
53 $a_selection_cmd,
54 $a_selection_par
55 );
56
57 $this->setAjax(true);
58 }
59
65 public function getNodeHref($a_node): string
66 {
67 $ilCtrl = $this->ctrl;
68
69 $ilCtrl->setParameterByClass($this->selection_gui, "subCmd", $this->selection_subcmd);
70 $link = parent::getNodeHref($a_node);
71 $ilCtrl->setParameterByClass($this->selection_gui, "subCmd", "");
72 return $link;
73 }
74
80 /* This might be very expensive performance wise, see #32883
81 public function isNodeVisible($a_node): bool
82 {
83 if (parent::isNodeVisible($a_node)) {
84 //hide empty container
85 if (count($this->getChildsOfNode($a_node["child"])) > 0 || $this->isNodeClickable($a_node)) {
86 // #16523
87 if ($a_node["type"] == "qpl") {
88 return ilObjQuestionPool::_lookupOnline($a_node["obj_id"]);
89 }
90
91 return true;
92 }
93 }
94
95 return false;
96 }*/
97}
setParameterByClass(string $a_class, string $a_parameter, $a_value)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct( $a_parent_obj, string $a_parent_cmd, $a_selection_gui=null, string $a_selection_cmd="insert", string $a_selection_subcmd="selectPool", string $a_selection_par="pool_ref_id")
getNodeHref($a_node)
Get href for node.
Explorer for selecting repository items.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26