5 include_once(
"./Services/UIComponent/Explorer2/classes/class.ilExplorerSelectInputGUI.php");
6 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
30 public function __construct($a_title, $a_postvar, $a_multi =
false, $form = ilPropertyFormGUI::class)
34 $this->ctrl = $DIC->ctrl();
36 $this->multi_nodes = $a_multi;
37 $this->postvar = $a_postvar;
39 include_once(
"./Services/Repository/classes/class.ilRepositorySelectorExplorerGUI.php");
41 [$form, ilFormPropertyDispatchGUI::class, ilRepositorySelector2InputGUI::class],
44 "selectRepositoryItem",
46 "rep_exp_sel_" . $a_postvar
50 $this->explorer_gui->setSelectMode($a_postvar .
"_sel", $this->multi_nodes);
65 $this->title_modifier = $a_val;
67 $this->explorer_gui->setNodeContentModifier(
function ($a_node) use ($a_val) {
68 return $a_val($a_node[
"child"]);
71 $this->explorer_gui->setNodeContentModifier(null);
94 if (is_callable(
$c)) {
105 return $this->explorer_gui;
113 $this->explorer_gui = $explorer;
125 $ilCtrl->setParameterByClass(
"ilformpropertydispatchgui",
"postvar", $this->postvar);
126 $html = parent::getHTML();
127 $ilCtrl->setParameterByClass(
"ilformpropertydispatchgui",
"postvar", $_REQUEST[
"postvar"]);
134 public function render($a_mode =
"property_form")
137 $ilCtrl->setParameterByClass(
"ilformpropertydispatchgui",
"postvar", $this->postvar);
138 return parent::render($a_mode);
139 $ilCtrl->setParameterByClass(
"ilformpropertydispatchgui",
"postvar", $_REQUEST[
"postvar"]);
Explorer for selecting repository items.
static _lookupTitle($a_id)
lookup object title
static _lookupObjId($a_id)
__construct(Container $dic, ilPlugin $plugin)