3 declare(strict_types=1);
    19         return self::TYPE_FLOAT;
    22     protected function init(): void
    37         $def->setMin($this->
getMin());
    38         $def->setMax($this->
getMax());
    50         $this->decimals = max(self::MIN_DECIMALS, abs((
int) $a_value));
    69         parent::importFieldDefinition($a_def);
    70         $this->
setDecimals($a_def[
"decimals"] ?? self::MIN_DECIMALS);
    75         $def = parent::getFieldDefinition();
    86         $res = parent::getFieldDefinitionForTableGUI($content_language);
    99         bool $a_disabled = 
false,
   107         parent::addCustomFieldToDefinitionForm($a_form, $a_disabled, 
$language);
   110         $decimals->setRequired(
true);
   111         $decimals->setValue((
string) $this->
getDecimals());
   112         $decimals->setSize(5);
   116             $decimals->setDisabled(
true);
   125         parent::importCustomDefinitionFormPostValues($a_form, 
$language);
   136         parent::addPropertiesToXML($a_writer);
   142         if ($a_key == 
"decimals") {
   143             $this->
setDecimals($a_value != 
"" ? $a_value : null);
   146         parent::importXMLProperty($a_key, $a_value);
 
setDecimals($a_value)
Set decimals. 
 
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...
 
AMD field type float (based on integer) 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
importXMLProperty(string $a_key, string $a_value)
 
getDecimals()
Get decimals. 
 
importCustomDefinitionFormPostValues(ilPropertyFormGUI $a_form, string $language='')
Import custom post values from definition form. 
 
addPropertiesToXML(ilXmlWriter $a_writer)
 
getFieldDefinitionForTableGUI(string $content_language)
 
addCustomFieldToDefinitionForm(ilPropertyFormGUI $a_form, bool $a_disabled=false, string $language='')
Add input elements to definition form. 
 
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content) 
 
ADT definition base class. 
 
importFieldDefinition(array $a_def)