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();
    39         $this->
setType(
"style_numeric");
    42     public function setValue(
string $a_value): void
    44         $this->value = $a_value;
    54         $this->allowpercentage = $a_allowpercentage;
    67         $num_value = $input[
"num_value"];
    68         $num_unit = $input[
"num_unit"];
    70         if ($this->
getRequired() && trim($num_value) == 
"") {
    76         if (!is_numeric($num_value) && $num_value != 
"") {
    82         if (trim($num_value) != 
"") {
    83             $this->
setValue($num_value . $num_unit);
    96         $tpl = 
new ilTemplate(
"tpl.prop_style_numeric.html", 
true, 
true, 
"components/ILIAS/Style/Content");
    98         $tpl->setVariable(
"POSTVAR", $this->
getPostVar());
   102         $value = strtolower(trim($this->
getValue()));
   105         foreach ($unit_options as $u) {
   106             if (substr($value, strlen($value) - strlen($u)) == $u) {
   112             substr($value, 0, strlen($value) - strlen($current_unit))
   114         if ($current_unit == 
"") {
   115             $current_unit = 
"px";
   118         foreach ($unit_options as $option) {
   119             $tpl->setCurrentBlock(
"unit_option");
   120             $tpl->setVariable(
"VAL_UNIT", $option);
   121             $tpl->setVariable(
"TXT_UNIT", $option);
   122             if ($current_unit == $option) {
   123                 $tpl->setVariable(
"UNIT_SELECTED", 
'selected="selected"');
   125             $tpl->parseCurrentBlock();
 
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)
 
__construct(Container $dic, ilPlugin $plugin)