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();
 
  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);
 
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.
addCustomFieldToDefinitionForm(ilPropertyFormGUI $a_form, $a_disabled=false)
Add input elements to definition form.
isFilterSupported()
Is search by filter supported.
importXMLProperty($a_key, $a_value)
Import property from XML.
importCustomDefinitionFormPostValues(ilPropertyFormGUI $a_form)
Import custom post values from definition form.
setDecimals($a_value)
Set decimals.
getFieldDefinitionForTableGUI()
Parse properties for table gui.
getFieldDefinition()
Get (type-specific) field definition.
initADTDefinition()
Init adt instance.
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)