4require_once
"Services/AdvancedMetaData/classes/class.ilAdvancedMDFieldDefinition.php";
38 $def->setMin($this->
getMin());
39 $def->setMax($this->
getMax());
59 $a_value = (int)$a_value;
61 $this->min = $a_value;
83 $a_value = (int)$a_value;
85 $this->max = $a_value;
105 if($a_value !==
null)
107 $a_value = trim($a_value);
109 $this->suffix = $a_value;
129 $this->
setMin($a_def[
"min"]);
130 $this->
setMax($a_def[
"max"]);
149 if($this->
getMin() !==
null)
151 $res[$lng->txt(
"md_adv_number_min")] = $this->
getMin();
153 if($this->
getMax() !==
null)
155 $res[$lng->txt(
"md_adv_number_max")] = $this->
getMax();
159 $res[$lng->txt(
"md_adv_number_suffix")] = $this->
getSuffix();
192 $min->setDisabled(
true);
193 $max->setDisabled(
true);
231 $this->
setMin($a_value !=
"" ? $a_value :
null);
235 $this->
setMax($a_value !=
"" ? $a_value :
null);
237 if($a_key ==
"suffix")
239 $this->
setSuffix($a_value !=
"" ? $a_value :
null);
245 return $element->getNumber();
250 $this->
getADT()->setNumber($a_cdata);
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)
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)