26         $properties_def = $factory->getDefinitionInstanceByType(
"Group");
    28         $name = $factory->getDefinitionInstanceByType(
"Text");
    29         $name->setMaxLength(255);
    30         $properties_def->addElement(
"name", $name);
    32         $status = $factory->getDefinitionInstanceByType(
"Boolean");
    33         $properties_def->addElement(
"active", $status);
    36         $this->
lng->loadLanguageModule(
"meta");
    38         foreach ($this->
lng->getInstalledLanguages() as 
$lang) {
    42         $lang = $factory->getDefinitionInstanceByType(
"Enum");
    43         $lang->setNumeric(
false);
    44         $lang->setOptions($options);
    45         $properties_def->addElement(
"lang", 
$lang);
    47         $age = $factory->getDefinitionInstanceByType(
"Integer");
    50         $properties_def->addElement(
"age", $age);
    52         $weight = $factory->getDefinitionInstanceByType(
"Float");
    55         $properties_def->addElement(
"weight", $weight);
    58         $home = $factory->getDefinitionInstanceByType(
"Location");
    59         $properties_def->addElement(
"home", $home);
    61         $tags = $factory->getDefinitionInstanceByType(
"MultiText");
    62         $tags->setMaxLength(255);
    64         $properties_def->addElement(
"tags", $tags);
    67             self::INTERESTS_NONE => $this->
lng->txt(
"test_interests_none"),
    68             self::INTERESTS_LANGUAGES => $this->
lng->txt(
"test_interests_languages"),
    69             self::INTERESTS_IT => $this->
lng->txt(
"test_interests_it")
    72         $intr = $factory->getDefinitionInstanceByType(
"MultiEnum");
    73         $intr->setOptions($options);
    74         $properties_def->addElement(
"interests", $intr);
    76         $date = $factory->getDefinitionInstanceByType(
"Date");
    77         $properties_def->addElement(
"entry_date", $date);
    79         $dt = $factory->getDefinitionInstanceByType(
"DateTime");
    80         $properties_def->addElement(
"last_login", $dt);
    83         return $factory->getInstanceByDefinition($properties_def);