Child::getEvents - jcobban/Genealogy GitHub Wiki
$child->getEvents()
Up: class Child
This factory method is used to obtain a RecordSet of all of the events associated with this instance of Child. This method exists for symmetry with $person->getEvents() and $family->getEvents(). This allows for some future time when there may be more than one event associated with a Child
.
This returns an empty RecordSet
if there are no events associated with this Child
. Otherwise it returns a RecordSet
containing a single instance of class Event which is identified either by the numeric 'ider'
value identifying the corresponding record in table tblER
(or Events
) or else by the string 'parseal'
.
For example:
$events = $child->getEvents();
$numEvents = count($events);
foreach($events as $ider => $event)
{
...
}