4 require_once
"Services/AdvancedMetaData/classes/class.ilAdvancedMDFieldDefinition.php";
26 return self::TYPE_INTEGER;
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"]);
153 if ($this->
getMin() !== null) {
156 if ($this->
getMax() !== null) {
194 $min->setDisabled(
true);
195 $max->setDisabled(
true);
231 if ($a_key ==
"min") {
232 $this->
setMin($a_value !=
"" ? $a_value : null);
234 if ($a_key ==
"max") {
235 $this->
setMax($a_value !=
"" ? $a_value : null);
237 if ($a_key ==
"suffix") {
238 $this->
setSuffix($a_value !=
"" ? $a_value : null);
244 return $element->getNumber();
249 $this->
getADT()->setNumber($a_cdata);
AMD field abstract base class.
getADT()
Get ADT instance.
addPropertiesToXML(ilXmlWriter $a_writer)
static getInstance()
Get singleton.
importCustomDefinitionFormPostValues(ilPropertyFormGUI $a_form)
Import custom post values from definition form.
foreach($_POST as $key=> $value) $res
This class represents a text property in a property form.
importValueFromXML($a_cdata)
xmlElement($tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)
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)