4 require_once
"Services/AdvancedMetaData/classes/Types/class.ilAdvancedMDFieldDefinitionInteger.php";
24 return self::TYPE_FLOAT;
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);
138 parent::importCustomDefinitionFormPostValues($a_form);
150 parent::addPropertiesToXML($a_writer);
157 if ($a_key ==
"decimals") {
158 $this->
setDecimals($a_value !=
"" ? $a_value : null);
161 parent::importXMLProperty($a_key, $a_value);
getFieldDefinitionForTableGUI()
importXMLProperty($a_key, $a_value)
setDecimals($a_value)
Set decimals.
AMD field type float (based on integer)
getDecimals()
Get decimals.
static getInstance()
Get singleton.
addPropertiesToXML(ilXmlWriter $a_writer)
foreach($_POST as $key=> $value) $res
addCustomFieldToDefinitionForm(ilPropertyFormGUI $a_form, $a_disabled=false)
Add input elements to definition form.
Create styles array
The data for the language used.
xmlElement($tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
importCustomDefinitionFormPostValues(ilPropertyFormGUI $a_form)
Import custom post values from definition form.
importFieldDefinition(array $a_def)