Esempio n. 1
0
 protected function generatePerson($name_str, $summary = null, $orgs = null)
 {
     $name_arr = LsLanguage::parseFlatName($name_str);
     extract($name_arr);
     $person = new Entity();
     $person->addExtension('Person');
     $person->name_prefix = $name_prefix;
     $person->name_first = $name_first;
     $person->name_middle = $name_middle;
     $person->name_last = $name_last;
     $person->name_suffix = $name_suffix;
     $person->name_nick = $name_nick;
     return $person;
 }