Family::getChildren - jcobban/Genealogy GitHub Wiki
$family->getChildren()
Up: class Family
This method is used to obtain a RecordSet
of all of the instances of class Child
associated with this instance of Family.
This returns an empty RecordSet
if there are no children associated with this Family
. Otherwise it returns a RecordSet
containing instances of class Child
which are identified by the numeric 'idcr'
value.
For example:
$children = $family->getChildren();
foreach($children as $idcr => $child)
{
$person = $child->getPerson();
...
}
Next: $family->addChild($idir)