new DontMergeEntry - jcobban/Genealogy GitHub Wiki
new DontMergeEntry($parms)
The constructor for an instance of DontMergeEntry takes one parameter:
parameter | description |
---|---|
$parms | identifies the database record to be associated with this instance. This is an associative array. |
$parms may be:
- An associative array of parameters to uniquely identify a record. In particular specify values for 'idirleft', and 'idirright'. The order of the parameters does not matter as the implementation ensures that the value of 'idirleft' is always less than 'idiright' to ensure that false duplicates are not created.
For example:
$dontMergeEntry = new DontMergeEntry(array('idirleft' => $idirleft,
'idirright' => $idirright));
- For backwards compatibility this may also be specified as:
$dontMergeEntry = new DontMergeEntry($idirleft, $idirright);
Either way the lower of the two values is used for 'idirleft' and the higher is used for 'idirright'.
The constructor adds error messages to $record->msg
if it is unable to complete due to bad parameters.