Person::getPriName - jcobban/Genealogy GitHub Wiki

$person->getPriName()

Up: class Person

This factory method returns an instance of class Name that contains information on the primary name of the Person. Formerly this information was kept in the Person record, but that violated 3rd Normal Form (3NF).

Example:

$name        = $person->getPriName();
print $name->getName(Name::NAME_INCLUDE_DATES);
print "surname=" . $name->get('surname');

Next: $person->getName($options)