Skip to content

Family::getMarEndEvent

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

$family->getMarEndEvent($create)

Up: class Family

This factory method obtains information about the Event that ended the family relationship. For example this could be a divorce or the death of one of the partners.

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 end of 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->getEvents()

Clone this wiki locally