4 require_once
"Services/AdvancedMetaData/classes/class.ilAdvancedMDFieldDefinition.php";
26 return self::TYPE_INTEGER;
43 $def->setMin($this->
getMin());
44 $def->setMax($this->
getMax());
64 $a_value = (int)$a_value;
66 $this->min = $a_value;
88 $a_value = (int)$a_value;
90 $this->max = $a_value;
110 if($a_value !== null)
112 $a_value = trim($a_value);
114 $this->suffix = $a_value;
134 $this->
setMin($a_def[
"min"]);
135 $this->
setMax($a_def[
"max"]);
154 if($this->
getMin() !== null)
156 $res[$lng->txt(
"md_adv_number_min")] = $this->
getMin();
158 if($this->
getMax() !== null)
160 $res[$lng->txt(
"md_adv_number_max")] = $this->
getMax();
164 $res[$lng->txt(
"md_adv_number_suffix")] = $this->
getSuffix();
197 $min->setDisabled(
true);
198 $max->setDisabled(
true);
236 $this->
setMin($a_value !=
"" ? $a_value : null);
240 $this->
setMax($a_value !=
"" ? $a_value : null);
242 if($a_key ==
"suffix")
244 $this->
setSuffix($a_value !=
"" ? $a_value : null);
250 return $element->getNumber();
255 $this->
getADT()->setNumber($a_cdata);
AMD field abstract base class.
getADT()
Get ADT instance.
addPropertiesToXML(ilXmlWriter $a_writer)
xmlElement($tag, $attrs=NULL, $data=Null, $encode=TRUE, $escape=TRUE)
Writes a basic element (no children, just textual content)
static getInstance()
Get singleton.
importCustomDefinitionFormPostValues(ilPropertyFormGUI $a_form)
Import custom post values from definition form.
This class represents a text property in a property form.
importValueFromXML($a_cdata)
Create styles array
The data for the language used.
importXMLProperty($a_key, $a_value)
setSuffix($a_value)
Set suffix.
getFieldDefinitionForTableGUI()
getValueForXML(ilADT $element)
addCustomFieldToDefinitionForm(ilPropertyFormGUI $a_form, $a_disabled=false)
Add input elements to definition form.
importFieldDefinition(array $a_def)