Family::addEvent - jcobban/Genealogy GitHub Wiki
$family->addEvent($xml)
Up: class Family
This factory method is used to associate a new instance of class Event
associated with this instance of Family
.
It has one optional parameter:
parameter | description |
---|---|
$xml | If the parameter is omitted it is treated as boolean false . If it is boolean true then XML output is generated containing the SQL command used to create the instance of Event . If the value is an existing instance of class Event then the instance is updated to reference this instance of Family . |
This returns an Event
, associated with this Family
, which needs to be completed.
Next: $family->getStatus()