ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilAdvancedMDFieldDefinitionAddress.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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.