5 include_once(
"./Services/Table/interfaces/interface.ilTableFilterItem.php");
6 include_once(
"./Services/Form/classes/class.ilFormPropertyGUI.php");
24 function __construct($a_title, $a_postvar, $a_explorer_gui, $a_multi =
false)
28 $this->multi_nodes = $a_multi;
29 $this->explorer_gui = $a_explorer_gui;
31 parent::__construct($a_title, $a_postvar);
43 return "handleExplorerCommand";
51 $this->explorer_gui->handleCommand();
69 if ($this->multi_nodes && !is_array($a_value))
71 if ($a_value !==
false)
73 $this->value =
array($a_value);
77 $this->value =
array();
82 $this->value = $a_value;
116 if ($this->multi_nodes)
139 $this->
setAlert($lng->txt(
"msg_input_is_required"));
150 function render($a_mode =
"property_form")
154 include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
156 $GLOBALS[
"tpl"]->addJavascript(
"./Services/UIComponent/Explorer2/js/Explorer2.js");
158 $tpl =
new ilTemplate(
"tpl.prop_expl_select.html",
true,
true,
"Services/UIComponent/Explorer2");
160 if ($a_mode !=
"property_form")
162 $tpl->touchBlock(
"tiny_presentation");
169 $val_txt = $sep =
"";
172 $tpl->setCurrentBlock(
"node_hid");
174 $tpl->setVariable(
"HID_VAL", $v);
175 $tpl->parseCurrentBlock();
176 $val_txt.= $sep.$this->getTitleForNodeId($v);
178 $this->explorer_gui->setNodeOpen($v);
179 $this->explorer_gui->setNodeSelected($v);
181 $tpl->setVariable(
"VAL_TXT", $val_txt);
185 $tpl->setCurrentBlock(
"node_hid");
187 $tpl->setVariable(
"HID_VAL", $val);
188 $tpl->parseCurrentBlock();
190 $this->explorer_gui->setNodeOpen($val);
191 $this->explorer_gui->setNodeSelected($val);
199 if(!$this->disabled) {
200 $tpl->setCurrentBlock(
"txt_select");
201 $tpl->setVariable(
"TXT_SELECT", $lng->txt(
"select"));
203 $tpl->parseCurrentBlock();
205 $tpl->setCurrentBlock(
"txt_reset");
206 $tpl->setVariable(
"TXT_RESET", $lng->txt(
"reset"));
208 $tpl->parseCurrentBlock();
211 $tpl->setVariable(
"EXPL", $this->explorer_gui->getHTML());
215 include_once
"Services/UIComponent/Button/classes/class.ilLinkButton.php";
218 $button->setCaption(
"select");
219 $button->addCSSClass(
"ilExplSelectInputButS");
220 $button->setOmitPreventDoubleSubmission(
true);
221 $top_tb->addButtonInstance($button);
224 $button->setCaption(
"cancel");
225 $button->addCSSClass(
"ilExplSelectInputButC");
226 $button->setOmitPreventDoubleSubmission(
true);
227 $top_tb->addButtonInstance($button);
230 $tpl->setVariable(
"TOP_TB", $top_tb->getHTML());
231 $tpl->setVariable(
"BOT_TB", $top_tb->getHTML());
265 $a_tpl->setCurrentBlock(
"prop_generic");
266 $a_tpl->setVariable(
"PROP_GENERIC", $this->
render());
267 $a_tpl->parseCurrentBlock();
Interface for property form input GUI classes that can be used in table filters.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
special template class to simplify handling of ITX/PEAR
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
Create styles array
The data for the language used.
static initPanel($a_resize=false)
Init yui panel.