19 declare(strict_types=1);
    28     protected ?
int $min = null;
    29     protected ?
int $max = null;
    40         return self::TYPE_INTEGER;
    69         $def->setMin($this->
getMin());
    70         $def->setMax($this->
getMax());
    75     public function setMin(?
int $a_value): void
    77         if ($a_value !== null) {
    80         $this->min = $a_value;
    88     public function setMax(?
int $a_value): void
    90         if ($a_value !== null) {
    93         $this->max = $a_value;
   103         if ($a_value !== null) {
   104             $a_value = trim($a_value);
   106         $this->suffix = $a_value;
   116         $this->
setMin(isset($a_def[
"min"]) ? (
int) $a_def[
"min"] : null);
   117         $this->
setMax(isset($a_def[
"max"]) ? (
int) $a_def[
"max"] : null);
   118         $this->
setSuffix($a_def[
"suffix"] ?? null);
   136         if ($this->
getMin() !== null) {
   137             $res[$this->
lng->txt(
"md_adv_number_min")] = $this->
getMin();
   139         if ($this->
getMax() !== null) {
   140             $res[$this->
lng->txt(
"md_adv_number_max")] = $this->
getMax();
   155         bool $a_disabled = 
false,
   159         $min->setValue((
string) $this->
getMin());
   164         $max->setValue((
string) $this->
getMax());
   174             )->getDefaultLanguage();
   175             $suffix->setInfo($default_language . 
': ' . $this->
getSuffix());
   178         $suffix->setSize(10);
   182             $min->setDisabled(
true);
   183             $max->setDisabled(
true);
   184             $suffix->setDisabled(
true);
   191         $this->
setMin(($min !== 
"" && !is_null($min)) ? (
int) $min : null);
   194         $this->
setMax(($max !== 
"" && !is_null($max)) ? (
int) $max : null);
   197             $suffix = $a_form->
getInput(
"suffix");
   198             $this->
setSuffix(($suffix !== 
"") ? $suffix : null);
   200             $suffix = $a_form->
getInput(
'suffix');
   212             $a_writer->
xmlElement(
'FieldValue', [
'id' => 
'suffix_' . $lang_key], $suffix);
   218         if ($a_key == 
"min") {
   219             $this->
setMin($a_value != 
"" ? (
int) $a_value : null);
   222         if ($a_key == 
"max") {
   223             $this->
setMax($a_value != 
"" ? (
int) $a_value : null);
   226         if ($a_key == 
"suffix") {
   227             $this->
setSuffix($a_value != 
"" ? $a_value : null);
   231         $parts = explode(
'_', $a_key);
   239         return (
string) $element->getNumber();
   244         $this->
getADT()->setNumber($a_cdata);
 
getFieldDefinitionForTableGUI(string $content_language)
 
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
 
AMD field abstract base class. 
 
importXMLProperty(string $a_key, string $a_value)
 
addPropertiesToXML(ilXmlWriter $a_writer)
 
setSuffix(?string $a_value)
 
setSuffixTranslations(array $suffix_translations)
 
importValueFromXML(string $a_cdata)
 
static _getInstanceByRecordId(int $a_record_id)
 
setSuffixTranslation(string $language, string $suffix)
 
importCustomDefinitionFormPostValues(ilPropertyFormGUI $a_form, string $language='')
 
useDefaultLanguageMode(string $language)
Check if default language mode has to be used: no language given or language equals default language...
 
addCustomFieldToDefinitionForm(ilPropertyFormGUI $a_form, bool $a_disabled=false, string $language='')
 
xmlElement(string $tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content) 
 
getValueForXML(ilADT $element)
 
language()
 description: > Example for rendring a language glyph. 
 
ADT definition base class. 
 
getRecordId()
Get record id. 
 
importFieldDefinition(array $a_def)