5include_once(
"./Services/Table/interfaces/interface.ilTableFilterItem.php");
 
    6include_once(
"./Services/Form/classes/class.ilFormPropertyGUI.php");
 
   24    public function __construct($a_title, $a_postvar, $a_explorer_gui, $a_multi = 
false)
 
   28        $this->lng = 
$DIC->language();
 
   31        $this->multi_nodes = $a_multi;
 
   32        $this->explorer_gui = $a_explorer_gui;
 
   34        parent::__construct($a_title, $a_postvar);
 
   46        return "handleExplorerCommand";
 
   54        $this->explorer_gui->handleCommand();
 
   72        if ($this->multi_nodes && !is_array($a_value)) {
 
   73            if ($a_value !== 
false) {
 
   74                $this->value = array($a_value);
 
   76                $this->value = array();
 
   79            $this->value = $a_value;
 
  113        if ($this->multi_nodes) {
 
  140    public function render($a_mode = 
"property_form")
 
  144        include_once(
"./Services/YUI/classes/class.ilYuiUtil.php");
 
  146        $GLOBALS[
"tpl"]->addJavascript(
"./Services/UIComponent/Explorer2/js/Explorer2.js");
 
  148        $tpl = 
new ilTemplate(
"tpl.prop_expl_select.html", 
true, 
true, 
"Services/UIComponent/Explorer2");
 
  150        if ($a_mode != 
"property_form") {
 
  151            $tpl->touchBlock(
"tiny_presentation");
 
  156        if (is_array($val)) {
 
  157            $val_txt = $sep = 
"";
 
  158            foreach ($val as $v) {
 
  159                $tpl->setCurrentBlock(
"node_hid");
 
  161                $tpl->setVariable(
"HID_VAL", $v);
 
  162                $tpl->parseCurrentBlock();
 
  165                $this->explorer_gui->setNodeOpen($v);
 
  166                $this->explorer_gui->setNodeSelected($v);
 
  168            $tpl->setVariable(
"VAL_TXT", $val_txt);
 
  169        } elseif ($val != 
"") {
 
  170            $tpl->setCurrentBlock(
"node_hid");
 
  172            $tpl->setVariable(
"HID_VAL", $val);
 
  173            $tpl->parseCurrentBlock();
 
  175            $this->explorer_gui->setNodeOpen($val);
 
  176            $this->explorer_gui->setNodeSelected($val);
 
  184        if (!$this->disabled) {
 
  185            $tpl->setCurrentBlock(
"txt_select");
 
  186            $tpl->setVariable(
"TXT_SELECT", 
$lng->txt(
"select"));
 
  188            $tpl->parseCurrentBlock();
 
  190            $tpl->setCurrentBlock(
"txt_reset");
 
  191            $tpl->setVariable(
"TXT_RESET", 
$lng->txt(
"reset"));
 
  193            $tpl->parseCurrentBlock();
 
  196        $tpl->setVariable(
"EXPL", $this->explorer_gui->getHTML());
 
  200        include_once 
"Services/UIComponent/Button/classes/class.ilLinkButton.php";
 
  203        $button->setCaption(
"select");
 
  204        $button->addCSSClass(
"ilExplSelectInputButS");
 
  205        $button->setOmitPreventDoubleSubmission(
true);
 
  206        $top_tb->addButtonInstance($button);
 
  209        $button->setCaption(
"cancel");
 
  210        $button->addCSSClass(
"ilExplSelectInputButC");
 
  211        $button->setOmitPreventDoubleSubmission(
true);
 
  212        $top_tb->addButtonInstance($button);
 
  215        $tpl->setVariable(
"TOP_TB", $top_tb->getHTML());
 
  216        $tpl->setVariable(
"BOT_TB", $top_tb->getHTML());
 
  250        $a_tpl->setCurrentBlock(
"prop_generic");
 
  251        $a_tpl->setVariable(
"PROP_GENERIC", $this->
render());
 
  252        $a_tpl->parseCurrentBlock();
 
An exception for terminatinating execution or to throw for unit testing.
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
static initPanel($a_resize=false, ilTemplate $a_main_tpl=null)
Init yui panel.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
Interface for property form input GUI classes that can be used in table filters.