4 require_once
"Services/AdvancedMetaData/classes/Types/class.ilAdvancedMDFieldDefinitionInteger.php";
24 return self::TYPE_FLOAT;
47 $def->setMin($this->
getMin());
48 $def->setMax($this->
getMax());
67 $this->decimals = max(1, abs((
int)$a_value));
87 parent::importFieldDefinition($a_def);
93 $def = parent::getFieldDefinition();
102 $res = parent::getFieldDefinitionForTableGUI();
118 parent::addCustomFieldToDefinitionForm($a_form, $a_disabled);
139 parent::importCustomDefinitionFormPostValues($a_form);
151 parent::addPropertiesToXML($a_writer);
158 if($a_key ==
"decimals")
160 $this->
setDecimals($a_value !=
"" ? $a_value : null);
163 parent::importXMLProperty($a_key, $a_value);
getFieldDefinitionForTableGUI()
importXMLProperty($a_key, $a_value)
setDecimals($a_value)
Set decimals.
AMD field type float (based on integer)
xmlElement($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE)
Writes a basic element (no children, just textual content)
getDecimals()
Get decimals.
static getInstance()
Get singleton.
addPropertiesToXML(ilXmlWriter $a_writer)
addCustomFieldToDefinitionForm(ilPropertyFormGUI $a_form, $a_disabled=false)
Add input elements to definition form.
Create styles array
The data for the language used.
importCustomDefinitionFormPostValues(ilPropertyFormGUI $a_form)
Import custom post values from definition form.
importFieldDefinition(array $a_def)