ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilPoolSelectorGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
13include_once "./Services/Repository/classes/class.ilRepositorySelectorExplorerGUI.php";
14
16{
17 protected $clickable_types = array();
18 protected $selection_subcmd = "";
19
20
30 public function __construct(
31 $a_parent_obj,
32 $a_parent_cmd,
33 $a_selection_gui = null,
34 $a_selection_cmd = "insert",
35 $a_selection_subcmd = "selectPool",
36 $a_selection_par = "pool_ref_id"
37 ) {
38 global $DIC;
39
40 $this->ctrl = $DIC->ctrl();
41 if ($a_selection_gui == null) {
42 $a_selection_gui = $a_parent_obj;
43 }
44
45 $this->selection_subcmd = $a_selection_subcmd;
47 $a_parent_obj,
48 $a_parent_cmd,
49 $a_selection_gui,
50 $a_selection_cmd,
51 $a_selection_par
52 );
53
54 $this->setAjax(true);
55 }
56
63 public function getNodeHref($a_node)
64 {
65 $ilCtrl = $this->ctrl;
66
67 $ilCtrl->setParameterByClass($this->selection_gui, "subCmd", $this->selection_subcmd);
68 $link = parent::getNodeHref($a_node);
69 $ilCtrl->setParameterByClass($this->selection_gui, "subCmd", "");
70 return $link;
71 }
72
79 /* This might be very expensive performance wise, see #32883
80 public function isNodeVisible($a_node)
81 {
82 if (parent::isNodeVisible($a_node)) {
83 //hide empty container
84 if (count($this->getChildsOfNode($a_node["child"])) > 0 || $this->isNodeClickable($a_node)) {
85 // #16523
86 if ($a_node["type"] == "qpl") {
87 include_once "Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php";
88 return ilObjQuestionPool::_lookupOnline($a_node["obj_id"]);
89 }
90
91 return true;
92 }
93 }
94
95 return false;
96 }*/
97}
An exception for terminatinating execution or to throw for unit testing.
Select media pool for adding objects into pages.
__construct( $a_parent_obj, $a_parent_cmd, $a_selection_gui=null, $a_selection_cmd="insert", $a_selection_subcmd="selectPool", $a_selection_par="pool_ref_id")
Constructor.
getNodeHref($a_node)
Get href for node.
Explorer for selecting repository items.
global $DIC
Definition: goto.php:24
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc