Lines Matching refs:record
87 * @param GedcomRecord $record
92 public function doesRecordNeedUpdate(GedcomRecord $record, array $params): bool argument
95 $record instanceof Individual &&
96 $record->facts(Gedcom::DEATH_EVENTS, false, null, true)->isEmpty() &&
97 $record->isDead();
103 * @param GedcomRecord $record
108 public function previewUpdate(GedcomRecord $record, array $params): string argument
110 $old = $record->gedcom();
111 $new = $this->updateGedcom($record);
113 return $this->data_fix_service->gedcomDiff($record->tree(), $old, $new);
119 * @param GedcomRecord $record
124 public function updateRecord(GedcomRecord $record, array $params): void argument
126 $record->updateRecord($this->updateGedcom($record), false);
130 * @param GedcomRecord $record
134 private function updateGedcom(GedcomRecord $record): string argument
136 return $record->gedcom() . "\n1 DEAT Y";