42 $properties_def = $factory->getDefinitionInstanceByType(
"Group");
44 $name = $factory->getDefinitionInstanceByType(
"Text");
45 $name->setMaxLength(255);
46 $properties_def->addElement(
"name", $name);
48 $status = $factory->getDefinitionInstanceByType(
"Boolean");
49 $properties_def->addElement(
"active", $status);
52 $this->
lng->loadLanguageModule(
"meta");
54 foreach ($this->
lng->getInstalledLanguages() as
$lang) {
58 $lang = $factory->getDefinitionInstanceByType(
"Enum");
59 $lang->setNumeric(
false);
60 $lang->setOptions($options);
61 $properties_def->addElement(
"lang",
$lang);
63 $age = $factory->getDefinitionInstanceByType(
"Integer");
66 $properties_def->addElement(
"age", $age);
68 $weight = $factory->getDefinitionInstanceByType(
"Float");
71 $properties_def->addElement(
"weight", $weight);
74 $home = $factory->getDefinitionInstanceByType(
"Location");
75 $properties_def->addElement(
"home", $home);
77 $tags = $factory->getDefinitionInstanceByType(
"MultiText");
78 $tags->setMaxLength(255);
80 $properties_def->addElement(
"tags", $tags);
83 self::INTERESTS_NONE => $this->
lng->txt(
"test_interests_none"),
84 self::INTERESTS_LANGUAGES => $this->
lng->txt(
"test_interests_languages"),
85 self::INTERESTS_IT => $this->
lng->txt(
"test_interests_it")
88 $intr = $factory->getDefinitionInstanceByType(
"MultiEnum");
89 $intr->setOptions($options);
90 $properties_def->addElement(
"interests", $intr);
92 $date = $factory->getDefinitionInstanceByType(
"Date");
93 $properties_def->addElement(
"entry_date", $date);
95 $dt = $factory->getDefinitionInstanceByType(
"DateTime");
96 $properties_def->addElement(
"last_login", $dt);
99 return $factory->getInstanceByDefinition($properties_def);