Person::getBirthEvent - jcobban/Genealogy GitHub Wiki

$person->getBirthEvent($create)

Up: class Person

This factory method returns an instance of class Event or null. Formerly this information was kept in the Person record, but that violated 3rd Normal Form (3NF). The Event contains information about the birth of the Person. It has one optional parameter:

parameter description
$create If this is boolean true this method returns an Event even if there is no recorded information about the birth of the Person. If the parameter is omitted or is not boolean true the method returns null if there is no information about the event.

Next: $person->getChristeningEvent($create)