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");
165 $val_txt = $sep =
"";
168 $tpl->setCurrentBlock(
"node_hid");
170 $tpl->setVariable(
"HID_VAL", $v);
171 $tpl->parseCurrentBlock();
172 $val_txt.= $sep.$this->getTitleForNodeId($v);
174 $this->explorer_gui->setNodeOpen($v);
175 $this->explorer_gui->setNodeSelected($v);
177 $tpl->setVariable(
"VAL_TXT", $val_txt);
181 $tpl->setCurrentBlock(
"node_hid");
183 $tpl->setVariable(
"HID_VAL", $val);
184 $tpl->parseCurrentBlock();
186 $this->explorer_gui->setNodeOpen($val);
187 $this->explorer_gui->setNodeSelected($val);
193 $tpl->setVariable(
"TXT_SELECT", $lng->txt(
"select"));
194 $tpl->setVariable(
"TXT_RESET", $lng->txt(
"reset"));
196 $tpl->setVariable(
"EXPL", $this->explorer_gui->getHTML());
199 $top_tb->addButton($lng->txt(
"select"),
"#",
"",
"",
"",
"",
"submit ilExplSelectInputButS");
200 $top_tb->addButton($lng->txt(
"cancel"),
"#",
"",
"",
"",
"",
"submit ilExplSelectInputButC");
201 $tpl->setVariable(
"TOP_TB", $top_tb->getHTML());
202 $tpl->setVariable(
"BOT_TB", $top_tb->getHTML());
236 $a_tpl->setCurrentBlock(
"prop_generic");
237 $a_tpl->setVariable(
"PROP_GENERIC", $this->
render());
238 $a_tpl->parseCurrentBlock();
246 $html = $this->
render(
"table_filter");
Interface for property form input GUI classes that can be used in table filters.
special template class to simplify handling of ITX/PEAR
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static initPanel($a_resize=false)
Init yui panel.