43                parent::__construct($a_title, $a_postvar);
 
   54                $this->value = $a_value;
 
   87                        $this->
setAlert($lng->txt(
"msg_input_is_required"));
 
   92                if (
$type == 
"numeric")
 
   94                        if (!is_numeric($num_value) && $num_value != 
"")
 
   96                                $this->
setAlert($lng->txt(
"sty_msg_input_must_be_numeric"));
 
  101                        if (trim($num_value) != 
"")
 
  103                                $this->
setValue($num_value.$num_unit);
 
  119                $tpl = 
new ilTemplate(
"tpl.prop_fontsize.html", 
true, 
true, 
"Services/Style");
 
  128                if (in_array(
$value, $pre_options))
 
  130                        $current_type = 
"pre";
 
  131                        $tpl->setVariable(
"PREDEFINED_SELECTED", 
'checked="checked"');
 
  135                        $current_type = 
"unit";
 
  136                        $tpl->setVariable(
"NUMERIC_SELECTED", 
'checked="checked"');
 
  138                        foreach ($unit_options as $u)
 
  145                        $tpl->setVariable(
"VAL_NUM",
 
  146                                substr(
$value, 0, strlen(
$value) - strlen($current_unit)));
 
  147                        if ($current_unit == 
"")
 
  149                                $current_unit = 
"px";
 
  153                foreach ($unit_options as $option)
 
  155                        $tpl->setCurrentBlock(
"unit_option");
 
  156                        $tpl->setVariable(
"VAL_UNIT", $option);
 
  157                        $tpl->setVariable(
"TXT_UNIT", $option);
 
  158                        if ($current_type == 
"unit" && $current_unit == $option)
 
  160                                $tpl->setVariable(
"UNIT_SELECTED", 
'selected="selected"');
 
  162                        $tpl->parseCurrentBlock();
 
  165                foreach ($pre_options as $option)
 
  167                        $tpl->setCurrentBlock(
"pre_option");
 
  168                        $tpl->setVariable(
"VAL_PRE", $option);
 
  169                        $tpl->setVariable(
"TXT_PRE", $option);
 
  170                        if ($current_type == 
"pre" && 
$value == $option)
 
  172                                $tpl->setVariable(
"PRE_SELECTED", 
'selected="selected"');
 
  174                        $tpl->parseCurrentBlock();
 
  177                $a_tpl->setCurrentBlock(
"prop_generic");
 
  178                $a_tpl->setVariable(
"PROP_GENERIC", 
$tpl->get());
 
  179                $a_tpl->parseCurrentBlock();
 
  191                if ($a_values[$this->
getPostVar()][
"type"] == 
"predefined")
 
static _getStyleParameterNumericUnits($a_no_percentage=false)
static _getStyleParameterValues($par)
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