4require_once 
"Services/AdvancedMetaData/classes/class.ilAdvancedMDFieldDefinition.php";
 
   62        if ($a_value !== 
null) {
 
   63            $a_value = (int) $a_value;
 
   65        $this->min = $a_value;
 
   85        if ($a_value !== 
null) {
 
   86            $a_value = (int) $a_value;
 
   88        $this->max = $a_value;
 
  108        if ($a_value !== 
null) {
 
  109            $a_value = trim($a_value);
 
  111        $this->suffix = $a_value;
 
  131        $this->
setMin($a_def[
"min"]);
 
  132        $this->
setMax($a_def[
"max"]);
 
  151        if ($this->
getMin() !== 
null) {
 
  152            $res[$lng->txt(
"md_adv_number_min")] = $this->
getMin();
 
  154        if ($this->
getMax() !== 
null) {
 
  155            $res[$lng->txt(
"md_adv_number_max")] = $this->
getMax();
 
  158            $res[$lng->txt(
"md_adv_number_suffix")] = $this->
getSuffix();
 
  190            $min->setDisabled(
true);
 
  191            $max->setDisabled(
true);
 
  227        if ($a_key == 
"min") {
 
  228            $this->
setMin($a_value != 
"" ? $a_value : 
null);
 
  230        if ($a_key == 
"max") {
 
  231            $this->
setMax($a_value != 
"" ? $a_value : 
null);
 
  233        if ($a_key == 
"suffix") {
 
  234            $this->
setSuffix($a_value != 
"" ? $a_value : 
null);
 
  240        return $element->getNumber();
 
  245        $this->
getADT()->setNumber($a_cdata);
 
An exception for terminatinating execution or to throw for unit testing.
static getInstance()
Get singleton.
getFieldDefinition()
Get (type-specific) field definition.
importCustomDefinitionFormPostValues(ilPropertyFormGUI $a_form)
Import custom post values from definition form.
setSuffix($a_value)
Set suffix.
importValueFromXML($a_cdata)
Import value from xml.
addPropertiesToXML(ilXmlWriter $a_writer)
Add (type-specific) properties to xml export.
importXMLProperty($a_key, $a_value)
Import property from XML.
addCustomFieldToDefinitionForm(ilPropertyFormGUI $a_form, $a_disabled=false)
Add input elements to definition form.
initADTDefinition()
Init adt instance.
getValueForXML(ilADT $element)
Parse ADT value for xml (export)
isFilterSupported()
Is search by filter supported.
getFieldDefinitionForTableGUI()
Parse properties for table gui.
importFieldDefinition(array $a_def)
Import (type-specific) field definition from DB.
AMD field abstract base class.
getADT()
Get ADT instance.
This class represents a text property in a property form.
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