ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAdvancedMDFieldDefinitionAddress.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
27{
28 public function getType(): int
29 {
30 return self::TYPE_ADDRESS;
31 }
32
33 public function getADTGroup(): ilADTDefinition
34 {
35 $def = ilADTFactory::getInstance()->getDefinitionInstanceByType("Group");
36
37 $street = ilADTFactory::getInstance()->getDefinitionInstanceByType("Text");
38 $def->addElement("street", $street);
39
40 $city = ilADTFactory::getInstance()->getDefinitionInstanceByType("Text");
41 $def->addElement("city", $city);
42
43 $loc = ilADTFactory::getInstance()->getDefinitionInstanceByType("Location");
44 $def->addElement("location", $loc);
45
46 return $def;
47 }
48
49 public function getTitles(): array
50 {
51 global $lng;
52
53 return array(
54 "street" => $lng->txt("street")
55 ,
56 "city" => $lng->txt("city")
57 ,
58 "location" => $lng->txt("location")
59 );
60 }
61}
ADT definition base class.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...