Child::getName - jcobban/Genealogy GitHub Wiki

$child->getName($options)

Up: class Child

This method returns the descriptive name of the Child from the current record. This exists to extend Record::getName. This consists of the name of the Child plus the name of the parents. For example "Bill Smith child of John Smith and Mary Jones" or "Bill Smith (1880—1935) child of John Smith (1845—1915) and Mary Jones (1848—1932)" or "Bill Smith (1880—1935) enfant de John Smith (1845—1915) et Mary Jones (1848—1932)".

This method accepts one parameter:

parameter description
$options bit mask combination of Child::NAME_INCLUDE_DATES, Child::NAME_SURNAME_FIRST and Child::NAME_INCLUDE_LOCS, or an associative array or an instance of class TemplateTag containing an internationalization translate table, which implies Name::NAME_INCLUDE_DATES

The bit-mask options have symbolic names:

name action
Child::NAME_INCLUDE_DATES include birth and death dates
Child::NAME_SURNAME_FIRST put surname first
Child::NAME_INCLUDE_LOCS include locations if birth and death

Next: $child->set($fieldname,$newvalue)