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);
54 parent::__construct($a_title, $a_postvar, $this->explorer_gui, $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;
117 $ilCtrl->setParameterByClass(
"ilformpropertydispatchgui",
"postvar", $this->postvar);
118 $html = parent::getHTML();
119 $ilCtrl->setParameterByClass(
"ilformpropertydispatchgui",
"postvar", $_REQUEST[
"postvar"]);
126 public function render($a_mode =
"property_form")
129 $ilCtrl->setParameterByClass(
"ilformpropertydispatchgui",
"postvar", $this->postvar);
130 return parent::render($a_mode);
131 $ilCtrl->setParameterByClass(
"ilformpropertydispatchgui",
"postvar", $_REQUEST[
"postvar"]);
Explorer for selecting repository items.
static _lookupTitle($a_id)
lookup object title
if(isset($_POST['submit'])) $form
static _lookupObjId($a_id)