Event::addCitations - jcobban/Genealogy GitHub Wiki

$event->addCitations($citations)

Up: class Event

This method adds Citations to the Event. It takes one parameter:

parameter description
$citations an instance of Citation, or an array of instances of Citation, or a RecordSet of Citations

As the Citations are added each Citation is changed to refer to this Event as this method is used to move Citations from one Event to another.

$oldCitations         = $oldevent->getCitations);
$newEvent->addCitations($oldCitations);
$oldevent->delete(false);

Next: $event->toXml($top, $print, $options)