43                parent::__construct($a_title, $a_postvar);
 
   44                $this->
setType(
"background_image");
 
   54                $this->value = $a_value;
 
   74                $this->images = $a_images;
 
  105                        $this->
setAlert($lng->txt(
"msg_input_is_required"));
 
  110                if (
$type == 
"external")
 
  127                $tpl = 
new ilTemplate(
"tpl.prop_background_image.html", 
true, 
true, 
"Services/Style");
 
  131                $int_options = array_merge(array(
"" => 
""), $this->
getImages());
 
  135                if (is_int(strpos(
$value, 
"/")))
 
  137                        $current_type = 
"ext";
 
  138                        $tpl->setVariable(
"EXTERNAL_SELECTED", 
'checked="checked"');
 
  143                        $current_type = 
"int";
 
  144                        $tpl->setVariable(
"INTERNAL_SELECTED", 
'checked="checked"');
 
  147                foreach ($int_options as $option)
 
  149                        $tpl->setCurrentBlock(
"int_option");
 
  150                        $tpl->setVariable(
"VAL_INT", $option);
 
  151                        $tpl->setVariable(
"TXT_INT", $option);
 
  153                        if ($current_type == 
"int" && 
$value == $option)
 
  155                                $tpl->setVariable(
"INT_SELECTED", 
'selected="selected"');
 
  157                        $tpl->parseCurrentBlock();
 
  160                $a_tpl->setCurrentBlock(
"prop_generic");
 
  161                $a_tpl->setVariable(
"PROP_GENERIC", 
$tpl->get());
 
  162                $a_tpl->parseCurrentBlock();
 
  174                if ($a_values[$this->
getPostVar()][
"type"] == 
"internal")
 
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