3 declare(strict_types=1);
    32     public function __construct(
string $a_title = 
"", 
string $a_postvar = 
"")
    36         $this->
lng = $DIC->language();
    37         $this->
user = $DIC->user();
    42     public function setValue(
string $a_value): void
    44         $this->value = $a_value;
    58         $type = $input[
"type"];
    59         $num_value = $input[
"num_value"];
    60         $num_unit = $input[
"num_unit"];
    61         $pre_value = $input[
"pre_value"];
    69         if (
$type == 
"numeric") {
    70             if (!is_numeric($num_value) && $num_value != 
"") {
    76             if (trim($num_value) != 
"") {
    77                 $this->
setValue($num_value . $num_unit);
    93         $tpl = 
new ilTemplate(
"tpl.prop_fontsize.html", 
true, 
true, 
"Services/Style/Content");
    95         $tpl->setVariable(
"POSTVAR", $this->
getPostVar());
   101         $value = strtolower(trim($this->
getValue()));
   103         if (in_array($value, $pre_options)) {
   104             $current_type = 
"pre";
   105             $tpl->setVariable(
"PREDEFINED_SELECTED", 
'checked="checked"');
   107             $current_type = 
"unit";
   108             $tpl->setVariable(
"NUMERIC_SELECTED", 
'checked="checked"');
   109             foreach ($unit_options as $u) {
   110                 if (substr($value, strlen($value) - strlen($u)) == $u) {
   116                 substr($value, 0, strlen($value) - strlen($current_unit))
   118             if ($current_unit == 
"") {
   119                 $current_unit = 
"px";
   123         foreach ($unit_options as $option) {
   124             $tpl->setCurrentBlock(
"unit_option");
   125             $tpl->setVariable(
"VAL_UNIT", $option);
   126             $tpl->setVariable(
"TXT_UNIT", $option);
   127             if ($current_type == 
"unit" && $current_unit == $option) {
   128                 $tpl->setVariable(
"UNIT_SELECTED", 
'selected="selected"');
   130             $tpl->parseCurrentBlock();
   133         foreach ($pre_options as $option) {
   134             $tpl->setCurrentBlock(
"pre_option");
   135             $tpl->setVariable(
"VAL_PRE", $option);
   136             $tpl->setVariable(
"TXT_PRE", $option);
   137             if ($current_type == 
"pre" && $value == $option) {
   138                 $tpl->setVariable(
"PRE_SELECTED", 
'selected="selected"');
   140             $tpl->parseCurrentBlock();
   150         if ($a_values[$this->
getPostVar()][
"type"] == 
"predefined") {
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
static _getStyleParameterNumericUnits(bool $a_no_percentage=false)
 
setVariable($variable, $value='')
Sets a variable value. 
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
static _getStyleParameterValues(string $par)