Skip to content

Family::getMarEvent

James Cobban edited this page Nov 23, 2019 · 2 revisions

$family->getMarEvent($create)

Up: class Family

This factory method obtains information about the "Marriage" Event, that is the event which initiated this Family.

This method has one parameter:

parameter contents
$create This is a boolean value. If it is true the method will create a new instance of class Event if one does not already exist.

This returns an instance of class Event or null if there is no existing "Marriage" Event and the parameter is not true.

The original database design did not conform to 3rd Normal Form in that information about a marriage event could be defined either by multiple fields in the instance of class Family or in an instance of class Event which referred to the instance of class Family.

Next: $family->getSealEvent($create)

Clone this wiki locally