24include_once(
"./Services/Table/interfaces/interface.ilTableFilterItem.php");
 
   25include_once(
"./Services/Form/classes/class.ilFormPropertyGUI.php");
 
   80                parent::__construct($a_title, $a_postvar);
 
   93                $this->width = (int)$a_width;
 
  115                $this->height = (int)$a_height;
 
  136                $this->options = $a_options;
 
  156                $this->value = $a_array;
 
  166                return is_array($this->value) ? $this->value : array();
 
  182                $this->select_all = (bool)$a_value;
 
  187                $this->selected_first = (bool)$a_value;
 
  214                        $this->
setAlert($lng->txt(
"msg_input_is_required"));
 
  228                $tpl = 
new ilTemplate(
"tpl.prop_multi_select.html", 
true, 
true, 
"Services/Form");
 
  234                        if($this->select_all)
 
  237                                $tpl->setCurrentBlock(
"item");                  
 
  238                                $tpl->setVariable(
"VAL", 
"");
 
  241                                $tpl->setVariable(
"TXT_OPTION" ,
"<em>".$lng->txt(
"select_all").
"</em>");
 
  243                                $tpl->parseCurrentBlock();                      
 
  246                                $tpl->setVariable(
"TOGGLE_ALL_ID", $this->
getFieldId().
"_all__toggle");
 
  250                        if($this->selected_first)
 
  253                                $tmp_checked = $tmp_unchecked = array();
 
  254                                foreach(
$options as $option_value => $option_text)
 
  256                                        if (in_array($option_value, $values))
 
  258                                                $tmp_checked[$option_value] = $option_text;
 
  262                                                $tmp_unchecked[$option_value] = $option_text;
 
  265                                $options = $tmp_checked + $tmp_unchecked;
 
  267                                unset($tmp_unchecked);
 
  270                        foreach(
$options as $option_value => $option_text)
 
  272                                $tpl->setCurrentBlock(
"item");
 
  275                                        $tpl->setVariable(
"DISABLED",
 
  276                                                " disabled=\"disabled\"");
 
  278                                if (in_array($option_value, $values))
 
  280                                        $tpl->setVariable(
"CHECKED",
 
  281                                                " checked=\"checked\"");
 
  287                                $tpl->setVariable(
"TXT_OPTION", $option_text);
 
  289                                $tpl->parseCurrentBlock();
 
  315                $a_tpl->setCurrentBlock(
"prop_generic");
 
  316                $a_tpl->setVariable(
"PROP_GENERIC", $this->
render());
 
  317                $a_tpl->parseCurrentBlock();
 
  350                $this->custom_attributes[] = $custom_attribute;
 
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 prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public
Interface for property form input GUI classes that can be used in table filters.