Lines Matching refs:xref
66 $xref = Validator::attributes($request)->isXref()->string('xref');
67 $record = Registry::gedcomRecordFactory()->make($xref, $tree);
74 $new_gedcom = $this->removeLinks($old_gedcom, $record->xref());
89 $relict_gedcom = $this->removeLinks($relict->gedcom(), $linker->xref());
113 * @param string $xref
117 private function removeLinks(string $gedrec, string $xref): string argument
119 …$gedrec = preg_replace('/\n1 ' . Gedcom::REGEX_TAG . ' @' . $xref . '@(\n[2-9].*)*/', '', $gedrec);
120 …$gedrec = preg_replace('/\n2 ' . Gedcom::REGEX_TAG . ' @' . $xref . '@(\n[3-9].*)*/', '', $gedrec);
121 …$gedrec = preg_replace('/\n3 ' . Gedcom::REGEX_TAG . ' @' . $xref . '@(\n[4-9].*)*/', '', $gedrec);
122 …$gedrec = preg_replace('/\n4 ' . Gedcom::REGEX_TAG . ' @' . $xref . '@(\n[5-9].*)*/', '', $gedrec);
123 …$gedrec = preg_replace('/\n5 ' . Gedcom::REGEX_TAG . ' @' . $xref . '@(\n[6-9].*)*/', '', $gedrec);