4require_once
"Services/AdvancedMetaData/classes/Types/class.ilAdvancedMDFieldDefinitionInteger.php";
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();
104 $res = parent::getFieldDefinitionForTableGUI($content_language);
122 parent::addCustomFieldToDefinitionForm($a_form, $a_disabled,
$language);
142 parent::importCustomDefinitionFormPostValues($a_form,
$language);
154 parent::addPropertiesToXML($a_writer);
161 if ($a_key ==
"decimals") {
162 $this->
setDecimals($a_value !=
"" ? $a_value :
null);
165 parent::importXMLProperty($a_key, $a_value);
An exception for terminatinating execution or to throw for unit testing.
static getInstance()
Get singleton.
AMD field type float (based on integer)
addPropertiesToXML(ilXmlWriter $a_writer)
Add (type-specific) properties to xml export.
isFilterSupported()
Is search by filter supported.
importXMLProperty($a_key, $a_value)
setDecimals($a_value)
Set decimals.
getFieldDefinition()
Get (type-specific) field definition.
importCustomDefinitionFormPostValues(ilPropertyFormGUI $a_form, string $language='')
Import custom post values from definition form.
addCustomFieldToDefinitionForm(ilPropertyFormGUI $a_form, $a_disabled=false, string $language='')
Add input elements to definition form.
getFieldDefinitionForTableGUI(string $content_language)
Parse properties for table gui.
getDecimals()
Get decimals.
importFieldDefinition(array $a_def)
Import (type-specific) field definition from DB.
xmlElement($tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
foreach($_POST as $key=> $value) $res