Lines Matching refs:xref
93 [, $level, $xref, $tag, $data] = $match;
145 $xref = '';
196 …$newrec .= ($newrec ? "\n" : '') . $level . ' ' . ($level === '0' && $xref ? $xref . ' ' : '') . $…
202 …$newrec .= ($newrec ? "\n" : '') . $level . ' ' . ($level === '0' && $xref ? $xref . ' ' : '') . $…
213 …$newrec .= ($newrec ? "\n" : '') . $level . ' ' . ($level === '0' && $xref ? $xref . ' ' : '') . $…
250 [, $xref, $type] = $match;
253 $xref = 'HEAD'; // For records without an XREF, use the type as a pseudo XREF.
257 $xref = 'TRLR'; // For records without an XREF, use the type as a pseudo XREF.
289 ->where('l_from', '=', $xref)
296 ->where('l_from', '=', $xref)
311 $record = Registry::individualFactory()->new($xref, $gedrec, null, $tree);
316 $rin = $xref;
324 'i_id' => $xref,
332 $this->updatePlaces($xref, $tree, $gedrec);
333 $this->updateDates($xref, $tree_id, $gedrec);
334 $this->updateNames($xref, $tree_id, $record);
354 'f_id' => $xref,
363 $this->updatePlaces($xref, $tree, $gedrec);
364 $this->updateDates($xref, $tree_id, $gedrec);
373 $name = $xref;
377 's_id' => $xref,
390 'o_id' => $xref,
405 'o_id' => $xref,
413 $record = Registry::mediaFactory()->new($xref, $gedrec, null, $tree);
416 'm_id' => $xref,
423 'm_id' => $xref,
435 'o_id' => $xref,
444 $this->updateLinks($xref, $tree_id, $gedrec);
526 * @param string $xref
532 public function updatePlaces(string $xref, Tree $tree, string $gedrec): void argument
548 'pl_gid' => $xref,
568 * @param string $xref
574 private function updateDates(string $xref, int $ged_id, string $gedrec): void argument
592 'd_gid' => $xref,
605 'd_gid' => $xref,
620 * @param string $xref
626 private function updateLinks(string $xref, int $ged_id, string $gedrec): void argument
639 'l_from' => $xref,
652 * @param string $xref
658 private function updateNames(string $xref, int $ged_id, Individual $record): void argument
682 'n_id' => $xref,
711 $xref = $this->createMediaObject($match[0], $tree);
712 $gedcom = strtr($gedcom, [$match[0] => "\n1 OBJE @" . $xref . '@']);
715 $xref = $this->createMediaObject($match[0], $tree);
716 $gedcom = strtr($gedcom, [$match[0] => "\n2 OBJE @" . $xref . '@']);
719 $xref = $this->createMediaObject($match[0], $tree);
720 $gedcom = strtr($gedcom, [$match[0] => "\n3 OBJE @" . $xref . '@']);
774 $xref = DB::table('media_file')
780 if ($xref === null) {
781 $xref = Registry::xrefFactory()->make(Media::RECORD_TYPE);
784 $gedcom = '0 @' . $xref . "@ OBJE\n1 FILE " . $file;
815 'm_id' => $xref,
821 'm_id' => $xref,
830 return $xref;