Family::getEvents
James Cobban edited this page Nov 23, 2019
·
7 revisions
Up: class Family
This factory method is used to obtain a RecordSet
of all of the events associated with this instance of Family. This method exists for symmetry with $child->getEvents() and $person->getEvents().
This returns an empty RecordSet
if there are no events associated with this Family
. Otherwise it returns a RecordSet
containing instances of class Event which are identified either by the numeric 'ider'
value identifying the corresponding record in table tblER
(or Events
) or else by a string constant representing an Event
that is still represented by the obsolete use of multiple fields within the Family
record itself.
$events = $family->getEvents();
$numEvents = count($events);
foreach($events as $ider => $event)
{
...
}
Next: $family->addEvent($xml)