Person::mergeFrom
James Cobban edited this page Sep 16, 2019
·
1 revision
Up: class Person
Update this instance of Person by merging in information from a second instance of Person. All attributes which do not have a non-empty value are filled in from the corresponding attributes in the second Person. Textual fields become the concatenation of the values from the two Persons. Events present in the second person if they are not equivalent to the corresponding events in the first person are added. It has one parameter
parameter | description |
---|---|
$individ2 | An instance of class Person from which information is to be merged. |
This method returns an array each row of which describes an update made to the Person. Each row in the array is an associative array:
name | contents |
---|---|
field | fieldname of field updated by this method |
value | new value of the field |
Next: $person->save($xml)